You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When restarting a chain from only an exported genesis (without data/*.db files) the next block time uses genesis time 🤔
This way if you stop the chain at block height 4 and export the genesis, delete the data/*.db, and restart the chain the block height 5 would use the genesis_time as the time for the new generated block
When loading the tendermint state it uses the genesis file when there is no state from *.db and then it sets the context LastBlockTime with the genesis time like LastBlockTime: genDoc.GenesisTime and then the context header time is filled with the time from the GenesisTime
This seems a bit weird because it happens at the tendermint layer, but tendermint doesn't have the export command
Summary of Bug
When restarting a chain from only an exported genesis (without
data/*.db
files) the next block time uses genesis time 🤔This way if you stop the chain at block height 4 and
export
the genesis, delete thedata/*.db
, and restart the chain the block height 5 would use thegenesis_time
as the time for the new generated blockWhen loading the tendermint state it uses the genesis file when there is no state from *.db and then it sets the context
LastBlockTime
with the genesis time likeLastBlockTime: genDoc.GenesisTime
and then the context header time is filled with the time from the GenesisTimeThis seems a bit weird because it happens at the tendermint layer, but tendermint doesn't have the
export
commandVersion
cd27aaaf39cc7819b5164e4baf3fd5aad23ec52a
v7.0.2
Steps to Reproduce
make
For Admin Use
The text was updated successfully, but these errors were encountered: