Open dooglus opened 6 years ago
I sent myself 0.1
, 0.01
, 0.001
, 0.0001
in 4 separate transactions, and then sent myself the same 4 amounts but in a single transaction. So the total I received is 0.2222
, but only 0.22
of it is at or above the 0.01
threshold.
I check the unspent outputs, and only see the four outputs that I should see:
$ echo $(clamd listunspent | grep amount | awk '{print $3}' | sort)
0.01000000, 0.01000000, 0.10000000, 0.10000000,
But when I check the balance, I see the sum of 6 outputs, including 2 of the too-small ones:
$ clamd getbalance
0.22110000
After applying the patch in OP, the getbalance
gives 0.22
as expected:
$ clamd getbalance
0.22000000
I used
mininput=0.01
inclam.conf
to ignore outputs smaller than 0.01 CLAM, then sent myself a transaction paying me multiple outputs, some larger than 0.01 and some smaller.When I
listunspent
, I only see the larger outputs, but when Igetbalance
I see the sum of all outputs, not only the larger ones.It seems the solution is to move the threshold test up a level: