diff options
author | kevkevin <oapallikunnel@gmail.com> | 2023-05-10 07:50:46 -0500 |
---|---|---|
committer | kevkevin <oapallikunnel@gmail.com> | 2023-05-10 07:50:46 -0500 |
commit | a7b46a1feae60e38fe4bdcacf5034f44cae49222 (patch) | |
tree | caea99cc8868eed183a05afa7d70603f293d2682 /test | |
parent | fa53611cf1b2ab2f49470ba75ee29a94a7b89105 (diff) |
test: added coverage to mining_basic.py
Included a test that checks if we call submitblock with
block.vtx.empty() then it throws an rpc deserialization error, currently
we only test if !block.vtx->IsCoinBase() throws an rpc deserialization
error
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/mining_basic.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/mining_basic.py b/test/functional/mining_basic.py index 332099516c..aabf06ee53 100755 --- a/test/functional/mining_basic.py +++ b/test/functional/mining_basic.py @@ -145,6 +145,7 @@ class MiningTest(BitcoinTestFramework): assert_template(node, bad_block, 'bad-cb-missing') self.log.info("submitblock: Test invalid coinbase transaction") + assert_raises_rpc_error(-22, "Block does not start with a coinbase", node.submitblock, CBlock().serialize().hex()) assert_raises_rpc_error(-22, "Block does not start with a coinbase", node.submitblock, bad_block.serialize().hex()) self.log.info("getblocktemplate: Test truncated final transaction") |