This commit is contained in:
Jae Kwon
2014-09-08 16:27:58 -07:00
parent 6a8bb68888
commit 6c3579e753

View File

@@ -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
}