Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: fix initialization from freezer
Blockchain initialization from a kv-destroyed but freezer-ok databases failed. The two problems were: - bc.empty was returning a false-negative when the database had no KV full/fast/head block data - bc.loadLastState -> Reset -> SetHead were endlessly looping, or panicing (because SetHead) does not tolerate CurrentBlock() returning nil. Signed-off-by: meows <[email protected]>
- Loading branch information