Commands compile (mostly) with new config reading

This commit is contained in:
Ethan Frey
2017-05-04 22:46:40 -04:00
committed by Ethan Buchman
parent 604bf03f3a
commit 92dee7ea3c
5 changed files with 25 additions and 49 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ import (
//--------------------------------------------------------
// replay messages interactively or all at once
func RunReplayFile(config *cfg.Config, csConfig *cfg.ConsensusConfig, console bool) {
func RunReplayFile(config *cfg.BaseConfig, csConfig *cfg.ConsensusConfig, console bool) {
consensusState := newConsensusStateForReplay(config, csConfig)
if err := consensusState.ReplayFile(csConfig.WalFile, console); err != nil {
@@ -235,7 +235,7 @@ func (pb *playback) replayConsoleLoop() int {
//--------------------------------------------------------------------------------
// convenience for replay mode
func newConsensusStateForReplay(config *cfg.Config, csConfig *cfg.ConsensusConfig) *ConsensusState {
func newConsensusStateForReplay(config *cfg.BaseConfig, csConfig *cfg.ConsensusConfig) *ConsensusState {
// Get BlockStore
blockStoreDB := dbm.NewDB("blockstore", config.DBBackend, config.DBDir)
blockStore := bc.NewBlockStore(blockStoreDB)