mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-08 14:21:14 +00:00
...
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user