diff options
| author | MarcoFalke <[email protected]> | 2020-04-22 16:57:19 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-04-22 16:56:56 -0400 |
| commit | fa262712ca0981cb0ee68cd3dd99a214a20dcbf1 (patch) | |
| tree | d5650c300dfac9cb1a27624a51d16f7a5ba3bd3a /test/functional/feature_nulldummy.py | |
| parent | Merge #18575: bench: Remove requirement that all benches use same testing setup (diff) | |
| download | discoin-fa262712ca0981cb0ee68cd3dd99a214a20dcbf1.tar.xz discoin-fa262712ca0981cb0ee68cd3dd99a214a20dcbf1.zip | |
test: Check submitblock return values
Diffstat (limited to 'test/functional/feature_nulldummy.py')
| -rwxr-xr-x | test/functional/feature_nulldummy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/feature_nulldummy.py b/test/functional/feature_nulldummy.py index 12471c508..ff55cb76d 100755 --- a/test/functional/feature_nulldummy.py +++ b/test/functional/feature_nulldummy.py @@ -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 |