Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network: only call tx callback if we're waiting for transactions
Until the consensus process starts for a new block and until it really needs some transactions we can spare some cycles by not delivering transactions to it. In tests this doesn't affect TPS, but makes block delays a bit more stable. Related to #2744, I think it also may cause timeouts during transaction processing (waiting on the consensus process channel while it does something dBFT-related).
- Loading branch information