stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 664 forks source link

Integrate P2P and HTTP network state machines into Helium testnet node #1362

Closed jcnelson closed 4 years ago

jcnelson commented 4 years ago

The main loop for the Helium testnet node should drive the peer network by calling the PeerNetwork::run() method every iteration, and consume any blocks, microblocks, and transactions it emits. In order to avoid starving the network due to (I/O-intensive) block processing, it would be best if the node ran a separate thread to run the network, and buffered up blocks, microblocks, and transactions to be written in a separate thread.

kantai commented 4 years ago

Implemented in #1382