MCPcopy Create free account
hub / github.com/ElementsProject/elements / success_mine

Method success_mine

test/functional/feature_segwit.py:115–119  ·  view source on GitHub ↗
(self, node, txid, sign, redeem_script="")

Source from the content-addressed store, hash-verified

113 self.sync_all()
114
115 def success_mine(self, node, txid, sign, redeem_script=""):
116 send_to_witness(1, node, getutxo(txid), self.pubkey[0], False, Decimal("49.998"), sign, redeem_script)
117 block = self.generate(node, 1)
118 assert_equal(len(node.getblock(block[0])["tx"]), 2)
119 self.sync_blocks()
120
121 def skip_mine(self, node, txid, sign, redeem_script=""):
122 send_to_witness(1, node, getutxo(txid), self.pubkey[0], False, Decimal("49.998"), sign, redeem_script)

Callers 1

run_testMethod · 0.95

Calls 5

send_to_witnessFunction · 0.90
assert_equalFunction · 0.90
getutxoFunction · 0.70
generateMethod · 0.45
sync_blocksMethod · 0.45

Tested by

no test coverage detected