account = "archon-gov"
nodelist = NodeList()
nodelist.update_nodes()
nodes = nodelist.get_nodes(hive=True)
hive = Hive(node=nodes)
def approve_witnesses(witness, account):
hive_account = Account(account, blockchain_instance=hive)
witness_tx = hive_account.approvewitness(witness, account)
time.sleep(4)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(witness_tx), "witness_tx", account)
approve_witnesses("lootkit.witness", account)
So the only thing I'm not sure about is how to get all the code into that neat little box?
account = "archon-gov" nodelist = NodeList() nodelist.update_nodes() nodes = nodelist.get_nodes(hive=True) hive = Hive(node=nodes) def approve_witnesses(witness, account): hive_account = Account(account, blockchain_instance=hive) witness_tx = hive_account.approvewitness(witness, account) time.sleep(4) c = Comment(loaded_post, steem_instance=hive) c.reply(str(witness_tx), "witness_tx", account) approve_witnesses("lootkit.witness", account)!end