Closed coderofstuff closed 8 months ago
The main aim of this PR is to minimize peer to peer latency of block processing by sharing a block with peers ASAP. Tests and benchmarks have shown that this is especially important with higher BPS network configurations.
Changes:
Refactor validate_and_insert_block to return two futures - Added in b134d61
The second future is used by all original callers, making the current implementation behave the same as before.
Change BodyProcessorMessage to VirtualStateProcessorMessage when passing the block from body-processor to virtual-processor - Added in af066c5
Add conditions/checks to see if we can broadcast
Actually broadcast the block after Body Processor