|
@ -280,12 +280,13 @@ func (pb *playback) replayConsoleLoop() int { |
|
|
|
|
|
|
|
|
// convenience for replay mode
|
|
|
// convenience for replay mode
|
|
|
func newConsensusStateForReplay(config cfg.BaseConfig, csConfig *cfg.ConsensusConfig) *ConsensusState { |
|
|
func newConsensusStateForReplay(config cfg.BaseConfig, csConfig *cfg.ConsensusConfig) *ConsensusState { |
|
|
|
|
|
dbType := dbm.DBBackendType(config.DBBackend) |
|
|
// Get BlockStore
|
|
|
// Get BlockStore
|
|
|
blockStoreDB := dbm.NewDB("blockstore", config.DBBackend, config.DBDir()) |
|
|
|
|
|
|
|
|
blockStoreDB := dbm.NewDB("blockstore", dbType, config.DBDir()) |
|
|
blockStore := bc.NewBlockStore(blockStoreDB) |
|
|
blockStore := bc.NewBlockStore(blockStoreDB) |
|
|
|
|
|
|
|
|
// Get State
|
|
|
// Get State
|
|
|
stateDB := dbm.NewDB("state", config.DBBackend, config.DBDir()) |
|
|
|
|
|
|
|
|
stateDB := dbm.NewDB("state", dbType, config.DBDir()) |
|
|
state, err := sm.MakeGenesisStateFromFile(config.GenesisFile()) |
|
|
state, err := sm.MakeGenesisStateFromFile(config.GenesisFile()) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
cmn.Exit(err.Error()) |
|
|
cmn.Exit(err.Error()) |
|
|