Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

DAWN-138 ⁃ P2P Network Improvements #291

@bytemaster

Description

@bytemaster

Easy

  • Clean up Console Spam

Stability

  1. Reconnect every 30 seconds to every peer in our config file
  2. ping pong latency measurement protocol and keep alive
  3. on connection check latency / clock skew
  4. Disable Naggle algorithm on connections (may introduce lag)

Usability

  1. RPC API for dynamically adding / removing peers and checking their status
  2. block only mode...send full blocks not pending trx (with delay for last irreversible)

Security

  1. Limit the maximum number of incoming connections
  2. Error reporting and abuse detection
  3. Authentication on handshake

Performance

  1. Don't relay messages to peers that already sent us the message
  2. Send block recipe to reconstruct from trx previously sent
  3. For large messages (block or trx) send notice hash + query to fetch
    • query from only one peer at a time
    • timeout quickly
  4. Multi-Threading of network processing

TODO: create per-item issues on github and link to issue number.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions