snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

Updates router connect and restricted peer logic

Open howardwu opened this issue 3 years ago • 0 comments

Motivation

This PR updates the Router connect and insert_restricted_peer logic.

Tests

This PR introduces a test framework for Router by implementing a TestRouter. Currently, only the Handshake and Disconnect capabilities are needed in testing, however the Reading and Writing traits are implemented with Inbound, Outbound, and Heartbeat traits as stubs to support extensibility in the future.

howardwu avatar Dec 05 '22 04:12 howardwu