cosmos / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
6.24k stars 3.61k forks source link

unsafe_reset_all broken: height regression error #72

Closed rigelrozanski closed 7 years ago

rigelrozanski commented 7 years ago

The following set of commands generate an error, where there shouldn't be one

rm -rf ~/.basecoin     ..........Work from a clean Dir
basecoin init
basecoin start
..............Wait for a few blocks to pass
<CTRL-C> .............. to stop basecoin
basecoin unsafe_reset_all
basecoin start

will cause the error on round 0

WARN[04-21|16:05:46] enterPrevote: ProposalBlock is nil       module=consensus
WARN[04-21|16:05:46] Error signing vote                       module=consensus height=1 round=0 vote="Vote{0:7A956FADD20D 1/00/1(Prevote) 000000000000 <nil>}" error="Error signing vote: Height regression"
rigelrozanski commented 7 years ago

(looking at solving this now)