Compute utxo stats - only non zero amounts

utxostat
Martin Boehm 2019-04-09 22:12:11 +02:00
parent 1b41a598a2
commit 60986634bc
1 changed files with 1 additions and 1 deletions

View File

@ -1459,7 +1459,7 @@ func (d *RocksDB) computeUtxoStats(stopCompute chan os.Signal) error {
}
outputs += int64(len(txAddresses.Outputs))
for i, output := range txAddresses.Outputs {
if !output.Spent {
if !output.Spent && len(output.ValueSat.Bits()) != 0 {
unspent++
size := packedTxidLen
size += packVaruint(uint(i), buffer)