diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-03-18 16:28:16 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-03-18 16:28:16 -0500 |
commit | d9e6baac421254988ea8a5b23e19aa7aec322658 (patch) | |
tree | 37f4a9b6dd7278e7e17cbe6cecfe5e60f96e0325 /tests | |
parent | Merge pull request #7675 (diff) | |
parent | Balance includes unconfirmed transfers to self (diff) | |
download | monero-d9e6baac421254988ea8a5b23e19aa7aec322658.tar.xz |
Merge pull request #8158
e5000a9 Balance includes unconfirmed transfers to self (woodser)
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/functional_tests/transfer.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/functional_tests/transfer.py b/tests/functional_tests/transfer.py index fca9ce91c..07a24546e 100755 --- a/tests/functional_tests/transfer.py +++ b/tests/functional_tests/transfer.py @@ -171,7 +171,7 @@ class TransferTest(): assert e.double_spend_seen == False assert not 'confirmations' in e or e.confirmations == 0 - running_balances[0] -= 1000000000000 + fee + running_balances[0] -= fee res = self.wallet[0].get_balance() assert res.balance == running_balances[0] @@ -183,8 +183,6 @@ class TransferTest(): running_balances[0] += res.block_header.reward self.wallet[0].refresh() - running_balances[0] += 1000000000000 - res = self.wallet[0].get_transfers() assert len(res['in']) == height # coinbases assert len(res.out) == 1 # not mined yet @@ -337,7 +335,7 @@ class TransferTest(): assert len(res.unsigned_txset) == 0 unsigned_txset = res.unsigned_txset - running_balances[0] -= 1000000000000 + 1100000000000 + 1200000000000 + fee + running_balances[0] -= 1100000000000 + 1200000000000 + fee res = self.wallet[0].get_balance() assert res.balance == running_balances[0] @@ -347,7 +345,6 @@ class TransferTest(): daemon.generateblocks('42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm', 1) res = daemon.getlastblockheader() running_balances[0] += res.block_header.reward - running_balances[0] += 1000000000000 running_balances[1] += 1100000000000 running_balances[2] += 1200000000000 self.wallet[0].refresh() |