[PBFT] Message pool modifying
hihiboss opened this issue · 0 comments
hihiboss commented
Component
Consensus - PBFT
Assignee
.
Detail
Change internal structure in msg pool.
- Add a msg id to prevote/precommit msg.
- From array to map.
- Add "RemoveByMsgId" to msg pool.
- In
func UpdateMsgPool
of state api, save messages which have same state id and not duplicated sender id from temp msg pool to msg pool. - Modify test cases.
Reference
.