/cl-p2p-setup

Consensus layer peer-to-peer connection setup

Primary LanguageRust

Consensus Layer P2P

This project is a basic setup for a consensus layer peer-to-peer connection, as specified in the consensus layer specifications of the peer-to-peer interface.

I also made this brief post for my initial research on the topic which you may find complementary for the code.

It is based on the lighthouse client beacon chain networking and examples of basic implementations for both discovery and gossipsub connections, featuring:

Issues

Although it's possible to currently receive blocks, connections are still hard to maintain, so a peer manager has to be implemented to keep the connected peers amount stable.