Refactor consensus/vote_set_test.go

This commit is contained in:
Jae Kwon
2014-12-23 23:20:49 -08:00
parent fa7c83166f
commit 70eb75dca7
9 changed files with 103 additions and 88 deletions

View File

@ -33,7 +33,7 @@ func NewNode() *Node {
stateDB := db_.NewMemDB() // TODO configurable db.
state := state_.LoadState(stateDB)
if state == nil {
state = state_.GenesisStateFromFile(stateDB, config.GenesisFile())
state = state_.MakeGenesisStateFromFile(stateDB, config.GenesisFile())
state.Save()
}