MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / assert_submit_block

Method assert_submit_block

test/functional/interface_ipc_mining.py:124–128  ·  view source on GitHub ↗
(self, mining, ctx, block, *, result, reason="", debug="")

Source from the content-addressed store, hash-verified

122 return block
123
124 async def assert_submit_block(self, mining, ctx, block, *, result, reason="", debug=""):
125 submit = await mining.submitBlock(ctx, block.serialize())
126 assert_equal(submit.result, result)
127 assert_equal(submit.reason, reason)
128 assert_equal(submit.debug, debug)
129
130 def run_mining_interface_test(self):
131 """Test Mining interface methods."""

Callers 1

async_routineMethod · 0.95

Calls 3

assert_equalFunction · 0.90
submitBlockMethod · 0.80
serializeMethod · 0.45

Tested by

no test coverage detected