chromaway / ngcccbase

next-gen colored coin client base
MIT License
85 stars 46 forks source link

Fix bug where wallet is reporting one balance and blockchain another. #152

Closed jimmysong closed 10 years ago

jimmysong commented 10 years ago

from: https://bitcointalk.org/index.php?topic=106373.msg5688970#msg5688970

Balances A bitcoin address (1DMkN2dgTHvRYAPgtTZAFsZXKE6rUJDG9E) has a balance of 0.00824875 BTC according to ChromaWallet, and 0 BTC according to blockchain.info. The value displayed in ChromaWallet is the same value of the most recently spent input.

jimmysong commented 10 years ago

Fetch history of all our addresses, sort transactions in dependency order and process each transaction during scanning in order to get the entire history.

killerstorm commented 10 years ago

This is fixed by coindb/txdb refactoring. People need to do ./ngccc-cli.py full_rescan, though.