diff options
author | woodser <woodser@protonmail.com> | 2022-01-30 17:03:56 -0500 |
---|---|---|
committer | woodser <woodser@protonmail.com> | 2022-01-31 07:52:38 -0500 |
commit | e5000a9f0c664a7c2b522c8a7eb712ed178923f6 (patch) | |
tree | 0350f2d4611d92dd287a1acf0a8bc7dce130a18c /tests/functional_tests/transfer.py | |
parent | Merge pull request #8135 (diff) | |
download | monero-e5000a9f0c664a7c2b522c8a7eb712ed178923f6.tar.xz |
Balance includes unconfirmed transfers to self
Diffstat (limited to '')
-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() |