From 6c3579e75372314d7ea5f05996f58dd0c91e6017 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Mon, 8 Sep 2014 16:27:58 -0700 Subject: [PATCH] ... --- state/state.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }