ComputeValuedTransactions balance doesn't equal wallet ballance
BUG REPORT
In the siatest-tests-nightly
package, the TestWalletTransactionsSumUpToWalletBalance
test consistently fails with approx. -20 SC difference between calculated balance and wallet balance.
Stack Trace or error message
=== RUN TestWalletTransactionsSumUpToWalletBalance
--- FAIL: TestWalletTransactionsSumUpToWalletBalance (16.08s)
wallet_vlong_test.go:133: Expected the summed up balance to be 3.365 MS but was 3.365 MS: Diff -20 SC
Expected Behavior
Test passes, calculated balance equals wallet balance.
Observed Behavior
-20 SC difference
How to reproduce it (as minimally and precisely as possible)
Execute:
make test-vlong run=TestWalletTransactionsSumUpToWalletBalance pkgs="./siatest/wallet"
Environment
- Sia version: master (2020-04-02)/1.4.6+
- OS: Linux (Gitlab CI/CD test image or local machine)
Edited by Filip Rysavy