(fix): add private_key of node to bigchain instance

This commit is contained in:
diminator 2017-01-04 11:00:08 +01:00 committed by tim
parent 8c46cc3fb4
commit 940a0cd4df

View File

@ -213,7 +213,7 @@ def main():
# vote # vote
DUMMY_SHA3 = '0123456789abcdef' * 4 DUMMY_SHA3 = '0123456789abcdef' * 4
b = Bigchain(public_key=node_public) b = Bigchain(public_key=node_public, private_key=node_private)
vote = b.vote(block.id, DUMMY_SHA3, True) vote = b.vote(block.id, DUMMY_SHA3, True)
vote_json = json.dumps(vote, indent=2, sort_keys=True) vote_json = json.dumps(vote, indent=2, sort_keys=True)