DE-labtory / it-chain

Lightweight & Customizable Block Chain
Apache License 2.0
177 stars 54 forks source link

Pbft msgpool fix #1034

Closed hihiboss closed 5 years ago

hihiboss commented 5 years ago

resolved: #1033

details:

  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.

    • [x] Test case