test: Check submitblock return values

This commit is contained in:
MarcoFalke committed 2020-04-22 16:56:56 -04:00
1 parent a7a6f1ff41
commit fa262712ca
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ class NULLDUMMYTest(BitcoinTestFramework):
witness and add_witness_commitment(block)
block.rehash()
block.solve()
node.submitblock(block.serialize().hex())
assert_equal(None if accept else 'block-validation-failed', node.submitblock(block.serialize().hex()))
if (accept):
assert_equal(node.getbestblockhash(), block.hash)
self.tip = block.sha256