openvcash / vcash

A decentralized currency for the internet.
https://vcash.info
GNU Affero General Public License v3.0
36 stars 35 forks source link

outdated state of transactions #8

Open ghost opened 7 years ago

ghost commented 7 years ago

If you shut down wallet when a new tx has 0/1/2/3 confirmations and don't restart the wallet until that tx has more than 5 confirmations, then you'll still see 0/1/2/3 confirmations in GUI. I guess the number of confirmations is saved in wallet. When you restart, GUI gets notifications with that (old) number of confirmations (as saved on wallet). Then the stack gets new confirmations for your txs, but it doesn't notify the GUI with updated number of confirmation because of the condition in this line:

https://github.com/openvcash/vcash/blob/master/coin/src/stack_impl.cpp#L4927

That condition is probably there to reduce the number of notifications sent by the stack but it is also responsible for this bug.