Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_groups.py
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
), amount=self.nodes[2].getbalance(), subtractfeefromamount=True) | ), amount=self.nodes[2].getbalance(), subtractfeefromamount=True) | ||||
self.sync_all() | self.sync_all() | ||||
self.nodes[0].generate(1) | self.nodes[0].generate(1) | ||||
# Fill node2's wallet with 10000 outputs corresponding to the same | # Fill node2's wallet with 10000 outputs corresponding to the same | ||||
# scriptPubKey | # scriptPubKey | ||||
for i in range(5): | for i in range(5): | ||||
raw_tx = self.nodes[0].createrawtransaction( | raw_tx = self.nodes[0].createrawtransaction( | ||||
[{"txid": "0"*64, "vout": 0}], [{addr2[0]: 0.05}]) | [{"txid": "0" * 64, "vout": 0}], [{addr2[0]: 0.05}]) | ||||
tx = FromHex(CTransaction(), raw_tx) | tx = FromHex(CTransaction(), raw_tx) | ||||
tx.vin = [] | tx.vin = [] | ||||
tx.vout = [tx.vout[0]] * 2000 | tx.vout = [tx.vout[0]] * 2000 | ||||
funded_tx = self.nodes[0].fundrawtransaction(ToHex(tx)) | funded_tx = self.nodes[0].fundrawtransaction(ToHex(tx)) | ||||
signed_tx = self.nodes[0].signrawtransactionwithwallet( | signed_tx = self.nodes[0].signrawtransactionwithwallet( | ||||
funded_tx['hex']) | funded_tx['hex']) | ||||
self.nodes[0].sendrawtransaction(signed_tx['hex']) | self.nodes[0].sendrawtransaction(signed_tx['hex']) | ||||
self.nodes[0].generate(1) | self.nodes[0].generate(1) | ||||
Show All 11 Lines |