Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_blocksonly.py
Show All 23 Lines | def run_test(self): | ||||
prevtx = self.nodes[0].getblock( | prevtx = self.nodes[0].getblock( | ||||
self.nodes[0].getblockhash(1), 2)['tx'][0] | self.nodes[0].getblockhash(1), 2)['tx'][0] | ||||
rawtx = self.nodes[0].createrawtransaction( | rawtx = self.nodes[0].createrawtransaction( | ||||
inputs=[{ | inputs=[{ | ||||
'txid': prevtx['txid'], | 'txid': prevtx['txid'], | ||||
'vout': 0 | 'vout': 0 | ||||
}], | }], | ||||
outputs=[{ | outputs=[{ | ||||
self.nodes[0].get_deterministic_priv_key().address: 50 - | self.nodes[0].get_deterministic_priv_key().address: 50000000 - | ||||
0.00125 | 1250.00 | ||||
}], | }], | ||||
) | ) | ||||
self.log.info(prevtx) | self.log.info(prevtx) | ||||
sigtx = self.nodes[0].signrawtransactionwithkey( | sigtx = self.nodes[0].signrawtransactionwithkey( | ||||
hexstring=rawtx, | hexstring=rawtx, | ||||
privkeys=[self.nodes[0].get_deterministic_priv_key().key], | privkeys=[self.nodes[0].get_deterministic_priv_key().key], | ||||
prevtxs=[{ | prevtxs=[{ | ||||
'txid': prevtx['txid'], | 'txid': prevtx['txid'], | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |