예제 #1
0
 def test_witnesses(self, node_param):
     if node_param == "non_appbase":
         bts = self.bts
     else:
         bts = self.appbase
     w = Witnesses(steem_instance=bts)
     w.printAsTable()
     self.assertTrue(len(w) > 0)
     self.assertTrue(isinstance(w[0], Witness))
예제 #2
0
            new_account = {}
            new_account["id"] = accounts[account]["id"]
            new_account["trust_seed"] = 0
            new_account["trust_score"] = 0
            new_account["trust_score_norm"] = 0
            new_account["trust_score_n"] = 0
            updated_accounts.append(new_account)
            cnt2 += 1
            if cnt2 % 250000 == 0:
                print("%d of %d" % (cnt2, N))
                account2TrxStorage.update_batch(updated_accounts)
                updated_accounts = []
        account2TrxStorage.update_batch(updated_accounts)
        updated_accounts = []
        print("done")
    w = Witnesses()
    witness_count = w.witness_count

    witness_owner = {}
    witness_owner["smooth.witness"] = ["smooth"]
    witness_owner["noisy.witness"] = ["noisy"]
    witness_owner["ats-witness"] = ["ats-david"]
    witness_owner["steemgigs"] = ["surpassinggoogle"]
    witness_owner["steemcommunity"] = ["paulag", "abh12345"]
    witness_owner["ocd-witness"] = ["acidyo"]
    witness_owner["castellano"] = ["moisesmcardona", "nnnarvaez"]
    witness_owner["exnihilo.witness"] = ["elmetro", "siavach"]
    witness_owner["steemitboard"] = ["arcange"]
    witness_owner["busy.witness"] = ["busy.org"]
    witness_owner["cloh76.witness"] = ["cloh76"]
    witness_owner["steemhq.witness"] = ["steemhq"]
예제 #3
0
파일: interface.py 프로젝트: bobinson/pywit
 def witlist(self):
     w = Witnesses()
     w.printAsTable()