DE-labtory/it-chain

[PBFT] Message pool modifying

hihiboss opened this issue · 0 comments

Component
Consensus - PBFT

Assignee
.

Detail
Change internal structure in msg pool.

  1. Add a msg id to prevote/precommit msg.
  2. From array to map.
  3. Add "RemoveByMsgId" to msg pool.
  4. 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.
  5. Modify test cases.

Reference
.