Skip to content

Commit

Permalink
Partially fix wallet_groups.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Nicoll committed Sep 18, 2021
1 parent bef0a3e commit 48eafc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/functional/wallet_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def set_test_params(self):
["-addresstype=bech32"],
["-addresstype=bech32"],
["-avoidpartialspends", "-addresstype=bech32"],
["-maxapsfee=0.002719", "-addresstype=bech32"],
["-maxapsfee=0.002720", "-addresstype=bech32"],
["-maxapsfee=0.013599", "-addresstype=bech32"],
["-maxapsfee=0.013600", "-addresstype=bech32"],
]
self.rpc_timeout = 480

Expand Down Expand Up @@ -122,7 +122,7 @@ def run_test(self):
[self.nodes[0].sendtoaddress(addr_aps2, 1.0) for _ in range(5)]
self.nodes[0].generate(1)
self.sync_all()
with self.nodes[3].assert_debug_log(['Fee non-grouped = 5520, grouped = 8240, using non-grouped']):
with self.nodes[3].assert_debug_log(['Fee non-grouped = 27600, grouped = 41200, using non-grouped']):
txid5 = self.nodes[3].sendtoaddress(self.nodes[0].getnewaddress(), 2.95)
tx5 = self.nodes[3].getrawtransaction(txid5, True)
# tx5 should have 3 inputs (1.0, 1.0, 1.0) and 2 outputs
Expand All @@ -135,7 +135,7 @@ def run_test(self):
[self.nodes[0].sendtoaddress(addr_aps3, 1.0) for _ in range(5)]
self.nodes[0].generate(1)
self.sync_all()
with self.nodes[4].assert_debug_log(['Fee non-grouped = 5520, grouped = 8240, using grouped']):
with self.nodes[4].assert_debug_log(['Fee non-grouped = 27600, grouped = 41200, using grouped']):
txid6 = self.nodes[4].sendtoaddress(self.nodes[0].getnewaddress(), 2.95)
tx6 = self.nodes[4].getrawtransaction(txid6, True)
# tx6 should have 5 inputs and 2 outputs
Expand Down Expand Up @@ -164,7 +164,7 @@ def run_test(self):
# Check that we can create a transaction that only requires ~100 of our
# utxos, without pulling in all outputs and creating a transaction that
# is way too big.
assert self.nodes[2].sendtoaddress(address=addr2[0], amount=5)
assert self.nodes[2].sendtoaddress(address=addr2[0], amount=50)


if __name__ == '__main__':
Expand Down

0 comments on commit 48eafc6

Please sign in to comment.