未验证 提交 af75b789 编写于 作者: K Kevin Heifner 提交者: GitHub

Merge pull request #4486 from evsward/hotfix

vote function duplicate removal
......@@ -199,13 +199,6 @@ def claimRewards():
times.append(getJsonOutput(args.cleos + 'system claimrewards -j ' + row['owner'])['processed']['elapsed'])
print('Elapsed time for claimrewards:', times)
def vote(b, e):
for i in range(b, e):
voter = accounts[i]['name']
prods = random.sample(range(firstProducer, firstProducer + numProducers), args.num_producers_vote)
prods = ' '.join(map(lambda x: accounts[x]['name'], prods))
retry(args.cleos + 'system voteproducer prods ' + voter + ' ' + prods)
def proxyVotes(b, e):
vote(firstProducer, firstProducer + 1)
proxy = accounts[firstProducer]['name']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册