NebulousLabs / Sia-UI

A Graphical Frontend for Sia - https://sia.tech
MIT License
389 stars 109 forks source link

siac wallet balance not equal to sum(transactions' net siacoins) #715

Closed wincss closed 7 years ago

wincss commented 7 years ago

$ siac version Sia Client v1.2.2 Sia Daemon v1.2.2

$ siac Synced: Yes Block: 000000000000000e446a671851bcdde18eaf8fefc64c35e39233b0a48eed95b5 Height: 123070 Target: [0 0 0 0 0 0 0 72 146 22 90 143 235 70 227 89 151 224 152 100 177 96 244 36 227 213 63 115 24 240 24 120] Difficulty: 254190132799417438

$ siac wallet balance Wallet status: Encrypted, Unlocked Confirmed Balance: 73.11 KS Unconfirmed Delta: +0 H Exact: 73114261535831251257159865839 H Siafunds: 0 SF Siafund Claims: 0 H

$ siac wallet transactions [height] [transaction id] [net siacoins] [net siafunds] ... many trx here ...

"net siafunds" is all zero run a simple awk script to sum "net siacoins"

$ siac wallet transactions|awk 'BEGIN{A=0} {A+=$3} END{print A}' 248154

248154 SC is not equal to 73.11KS

is it a bug or I misunderstand something?