SaitoTech / saito-rust-workspace

Cargo workspace which contains all the rust projects for Saito
4 stars 3 forks source link

A way to communicate wallet version differences to peers #731

Closed SankaD closed 5 months ago

SankaD commented 6 months ago

Notifying peers about wallet version changes

  1. Add wallet version to handshake and emit an event on version upgrade. (already implemented in browser mode. check 'new-version-detected' event)
  2. Print a warning message if the connecting peer has a higher wallet version

Not accepting blocks from peers with lower versioned wallet

  1. Print a warning message each time a lower wallet versioned peer sends a block hash. (eg : "Not fetching block : "XXX" from peer : "AAA" since peer's version is old. expected : "0.2.3" actual: "0.2.1" )
SankaD commented 5 months ago

Bug : #755