cpacia / BitcoinCash-Wallet

Bitcoin Cash P2P SPV Wallet
MIT License
73 stars 27 forks source link

Blockchain height is stuck at 505089 #8

Closed dymurray closed 6 years ago

dymurray commented 6 years ago

Hey there,

When I run this I see that the ticker value in the GUI is updated, but the Block height (set here) is stuck at 505089. I believe that it is not syncing properly? Also, I sent a transaction to my wallet but the value is still 0.00 even though it is a confirmed transaction. I did some debugging and found that this value is sitting at the value of the transaction so it is never being set as a confirmed amount.

I noticed a bunch of recent changes to blockchain.go and I am running from source. Could you help me figure out whats wrong? I also noticed blockchain.go is not passing tests anymore.

Thanks! Dylan

dymurray commented 6 years ago

More specifically: this function here is returning the old block data.

cpacia commented 6 years ago

Hi dymurray. Should be fixed. Looks like two blocks had the same timestamp and I wasn't handling that edge case properly.