diff --git a/state/state.go b/state/state.go index 0d5298eea..e9573c7b3 100644 --- a/state/state.go +++ b/state/state.go @@ -100,9 +100,10 @@ func (s *State) CommitTx(tx *Tx) error { func (s *State) CommitBlock(b *Block) error { s.mtx.Lock() defer s.mtx.Unlock() - // TODO commit the txs - // XXX also increment validator accum. + // XXX commit block by mutating state. panic("Implement CommitBlock()") + // After all state has been mutated, finally increment validators. + s.validators.IncrementAccum() return nil }