Changeset View
Changeset View
Standalone View
Standalone View
test/functional/bipdersig-p2p.py
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | def create_transaction(node, coinbase, to_address, amount): | ||||
rawtx = node.createrawtransaction(inputs, outputs) | rawtx = node.createrawtransaction(inputs, outputs) | ||||
signresult = node.signrawtransaction(rawtx, None, None, "ALL|FORKID") | signresult = node.signrawtransaction(rawtx, None, None, "ALL|FORKID") | ||||
tx = CTransaction() | tx = CTransaction() | ||||
tx.deserialize(BytesIO(hex_str_to_bytes(signresult['hex']))) | tx.deserialize(BytesIO(hex_str_to_bytes(signresult['hex']))) | ||||
return tx | return tx | ||||
class BIP66Test(BitcoinTestFramework): | class BIP66Test(BitcoinTestFramework): | ||||
def set_test_params(self): | |||||
def __init__(self): | |||||
super().__init__() | |||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [ | self.extra_args = [ | ||||
['-promiscuousmempoolflags=1', '-whitelist=127.0.0.1']] | ['-promiscuousmempoolflags=1', '-whitelist=127.0.0.1']] | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
def run_test(self): | def run_test(self): | ||||
node0 = NodeConnCB() | node0 = NodeConnCB() | ||||
connections = [] | connections = [] | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |