test: Check submitblock return values
This commit is contained in:
3 files changed
+8
-8
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user