From 1f223ebed7a931dcd3ac30050c508987c2b4b3fc Mon Sep 17 00:00:00 2001 From: Larry Ruane Date: Tue, 28 Dec 2021 22:10:13 -0700 Subject: [PATCH] assert that the return value of submitblock is None --- qa/rpc-tests/getblocktemplate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/rpc-tests/getblocktemplate.py b/qa/rpc-tests/getblocktemplate.py index fff462961..324e4e431 100755 --- a/qa/rpc-tests/getblocktemplate.py +++ b/qa/rpc-tests/getblocktemplate.py @@ -98,7 +98,8 @@ class GetBlockTemplateTest(BitcoinTestFramework): block = codecs.encode(block, 'hex_codec') print("Submitting block") - node.submitblock(block) + submitblock_reply = node.submitblock(block) + assert_equal(None, submitblock_reply) if __name__ == '__main__':