From ecd51b79c58af6726aea5c48534413c0855cb43c Mon Sep 17 00:00:00 2001 From: Team ChainStrike Date: Sun, 30 Sep 2018 18:59:49 +1000 Subject: [PATCH] Basic passing dpow test, run like: ./qa/pull-tester/rpc-tests.sh dpow --- qa/rpc-tests/dpow.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qa/rpc-tests/dpow.py b/qa/rpc-tests/dpow.py index 8c78b92cf..cf56d1ff5 100755 --- a/qa/rpc-tests/dpow.py +++ b/qa/rpc-tests/dpow.py @@ -25,12 +25,13 @@ class DPoWTest(BitcoinTestFramework): self.nodes[0].generate(3) rpc = self.nodes[0] - # Verify that basic RPC functions exist and work - result = rpc.calc_MoM(2,20) - print result - result = rpc.getinfo() - assert result.notarized,42 + print result + # TODO: actually do notarizations on regtest and test for specific data + # TODO: does this have mainnet values somehow? + assert(result['notarized'] >= 0) + assert(result['notarizedhash']) + assert(result['notarizedtxid']) if __name__ == '__main__': DPoWTest().main()