Skip to content

Commit

Permalink
assert statehash
Browse files Browse the repository at this point in the history
  • Loading branch information
alex v committed Dec 9, 2019
1 parent d3e786f commit 7ffee61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qa/rpc-tests/cfunddb-statehash.py
Expand Up @@ -59,13 +59,15 @@ def run_test(self):
self.nodes[1].generate(5)

assert(self.nodes[0].getbestblockhash() != self.nodes[1].getbestblockhash())
assert(self.nodes[0].getcfunddbstatehash() != self.nodes[1].getcfunddbstatehash())


connect_nodes(self.nodes[0], 1)

self.sync_all()

assert_equal(self.nodes[0].getbestblockhash(), self.nodes[1].getbestblockhash())

assert_equal(self.nodes[0].getcfunddbstatehash(), self.nodes[1].getcfunddbstatehash())

if __name__ == '__main__':
CFundDBStateHash().main()

0 comments on commit 7ffee61

Please sign in to comment.