Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet.py
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
self.nodes[0].getnewaddress(): 11.11} | self.nodes[0].getnewaddress(): 11.11} | ||||
rawTx = self.nodes[1].createrawtransaction(inputs, outputs).replace( | rawTx = self.nodes[1].createrawtransaction(inputs, outputs).replace( | ||||
"c0833842", "00000000") # replace 11.11 with 0.0 (int32) | "c0833842", "00000000") # replace 11.11 with 0.0 (int32) | ||||
decRawTx = self.nodes[1].decoderawtransaction(rawTx) | decRawTx = self.nodes[1].decoderawtransaction(rawTx) | ||||
signedRawTx = self.nodes[1].signrawtransaction(rawTx) | signedRawTx = self.nodes[1].signrawtransaction(rawTx) | ||||
decRawTx = self.nodes[1].decoderawtransaction(signedRawTx['hex']) | decRawTx = self.nodes[1].decoderawtransaction(signedRawTx['hex']) | ||||
zeroValueTxid = decRawTx['txid'] | zeroValueTxid = decRawTx['txid'] | ||||
sendResp = self.nodes[1].sendrawtransaction(signedRawTx['hex']) | self.nodes[1].sendrawtransaction(signedRawTx['hex']) | ||||
self.sync_all() | self.sync_all() | ||||
self.nodes[1].generate(1) # mine a block | self.nodes[1].generate(1) # mine a block | ||||
self.sync_all() | self.sync_all() | ||||
# zero value tx must be in listunspents output | # zero value tx must be in listunspents output | ||||
unspentTxs = self.nodes[0].listunspent() | unspentTxs = self.nodes[0].listunspent() | ||||
found = False | found = False | ||||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |