namecoin / electrum-nmc

Namecoin port of Electrum Bitcoin client.
https://www.namecoin.org/
MIT License
29 stars 24 forks source link

deleting best chain #96

Closed JeremyRand closed 5 years ago

JeremyRand commented 5 years ago

If you fully sync the chain and then restart Electrum-NMC in verbose mode (./run_electrum_nmc -v), this shows up in the logs:

[blockchain] deleting best chain. cannot connect header after last cp to last cp.
[blockchain] deleting chain fork2_383040_8a13eb2661a729bb289a5bb94686251f49217ecb8c33e952a8d3c78ab536e204_fcdff6755f6c7e1478b76d484fd464ac26b4d81ef7ecd3cdb3adb3a0396701b9: cannot connect chain to parent

The chain then has to re-download from the last checkpoint.

JeremyRand commented 5 years ago

I assume this is a bug in the timewarp code. Given that the checkpoint and timewarp code is heavily modified in the cp_height branch that I'll be submitting to upstream Electrum in the near future, I'm probably not going to look at this bug until we have some news on the cp_height branch.

JeremyRand commented 5 years ago

Unrelated to timewarp, it was an AuxPoW issue. Fixed by https://github.com/namecoin/electrum-nmc/pull/135