dtr-org / unit-e

A digital currency for a new era of decentralized trust
https://unit-e.io
MIT License
45 stars 15 forks source link

Some cleanups and fixes in commits exchange protocol #920

Closed frolosofsky closed 5 years ago

frolosofsky commented 5 years ago
  1. Follow code style and rename cs to m_cs in state repository (cc @AM5800)
  2. Don't ban peer when we cannot process commits (follow-up #912)
  3. When asking for commits, rely on the current tip instead of the best known block header because there may be a gap of finalization states between tip and best header. It fixes floating issue that has been discovered in #906, thanks to not properly block_sync-ed nodes.
scravy commented 5 years ago

utACK 056f6fb4c3b37245566e6575779026e2344355ca