Browse Source

...

pull/9/head
Jae Kwon 10 years ago
parent
commit
6c3579e753
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      state/state.go

+ 3
- 2
state/state.go 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
}


Loading…
Cancel
Save