MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / fail_accept

Method fail_accept

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

Source from the content-addressed store, hash-verified

89 sync_blocks(self.nodes)
90
91 def fail_accept(self, node, error_msg, txid, sign, redeem_script=""):
92 assert_raises_rpc_error(-26, error_msg, send_to_witness, use_p2wsh=1, node=node, utxo=getutxo(txid), pubkey=self.pubkey[0], encode_p2sh=False, amount=Decimal("49.998"), sign=sign, insert_redeem_script=redeem_script)
93
94
95 def run_test(self):

Callers 1

run_testMethod · 0.95

Calls 2

assert_raises_rpc_errorFunction · 0.90
getutxoFunction · 0.85

Tested by

no test coverage detected