()
| 104 | } |
| 105 | |
| 106 | func (pool *MsgPool) clean() { |
| 107 | pool.lock.Lock() |
| 108 | defer pool.lock.Unlock() |
| 109 | |
| 110 | pool.rounds = make(map[uint32]*ConsensusRound) |
| 111 | } |
| 112 | |
| 113 | func (pool *MsgPool) AddMsg(msg ConsensusMsg, msgHash common.Uint256) error { |
| 114 | pool.lock.Lock() |