From a4eb0294c665ecd43a8c9d0f6c0d80ce711d76da Mon Sep 17 00:00:00 2001 From: Team ChainStrike Date: Sat, 29 Sep 2018 06:47:59 +1000 Subject: [PATCH] Add dpow.py to test files --- qa/pull-tester/rpc-tests.sh | 1 + qa/rpc-tests/dpow.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/qa/pull-tester/rpc-tests.sh b/qa/pull-tester/rpc-tests.sh index b9a15ba00..8d753d596 100755 --- a/qa/pull-tester/rpc-tests.sh +++ b/qa/pull-tester/rpc-tests.sh @@ -11,6 +11,7 @@ export BITCOIND=${REAL_BITCOIND} #Run the tests testScripts=( + 'dpow.py' 'paymentdisclosure.py' 'prioritisetransaction.py' 'wallet_treestate.py' diff --git a/qa/rpc-tests/dpow.py b/qa/rpc-tests/dpow.py index 9cc146adf..c9247f404 100755 --- a/qa/rpc-tests/dpow.py +++ b/qa/rpc-tests/dpow.py @@ -18,6 +18,7 @@ class DPoWTest(BitcoinTestFramework): self.nodes = [] self.is_network_split = False self.nodes.append(start_node(0, self.options.tmpdir)) + self.sync_all() def run_test(self): self.nodes[0].generate(3) @@ -27,5 +28,8 @@ class DPoWTest(BitcoinTestFramework): result = rpc.calc_MoM(2,20) print result + result = rpc.getinfo() + assert result.notarized,42 + if __name__ == '__main__': DPoWTest().main()