Browse Source

Improve dpow tests

pull/140/head
Duke Leto 6 years ago
parent
commit
be29cb5983
  1. 7
      qa/rpc-tests/dpow.py

7
qa/rpc-tests/dpow.py

@ -28,9 +28,10 @@ class DPoWTest(BitcoinTestFramework):
result = rpc.getinfo()
print result
# TODO: actually do notarizations on regtest and test for specific data
assert(result['notarized'] >= 0)
assert(result['notarizedhash'])
assert(result['notarizedtxid'])
# regtest should have no notarization data, this test makes sure we do not see mainnet values as well!
assert_equal(result['notarized'],0)
assert_equal(result['notarizedhash'],'0000000000000000000000000000000000000000000000000000000000000000')
assert_equal(result['notarizedtxid'],'0000000000000000000000000000000000000000000000000000000000000000')
if __name__ == '__main__':
DPoWTest().main()

Loading…
Cancel
Save