state save/load test.

This commit is contained in:
Jae Kwon
2014-10-07 00:43:34 -07:00
parent b73b7a54c7
commit 08f86176fc
11 changed files with 99 additions and 15 deletions

View File

@ -418,7 +418,7 @@ func (cs *ConsensusState) stageBlock(block *Block) error {
stateCopy := cs.state.Copy() // Deep copy the state before staging.
// Commit block onto the copied state.
err := stateCopy.CommitBlock(block)
err := stateCopy.AppendBlock(block)
if err != nil {
return err
} else {