informalsystems / reactor-experiments

Experiments to help us establish a concurrency architecture for Tendermint in Rust
1 stars 0 forks source link

Blocking networking: Add simple PEX-like reactor with tests #2

Closed thanethomson closed 4 years ago

thanethomson commented 4 years ago

This PR includes some code for a PEX-like reactor implemented using blocking networking calls with multithreading exclusively to handle network I/O.

The aim here is to have a single-threaded "node" that acts as a seed node for a Tendermint network.

Right now, for the wire-level data transfer format I'm using Protobuf3 instead of Amino. Swapping Proto3 out for Amino for Tendermint compatibility shouldn't be too difficult at a later stage.

thanethomson commented 4 years ago

To run the tests with full debug log output:

cargo test -- --nocapture