Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shorten the ClusterInfoVoteListener leader lookahead window
The ClusterInfoVoteListener is responsible for forwarding votes to BankingStage. The service only forwards votes when the node will be leader soon, and it determines this by checking the PohRecorder. As currently written, the service will begin forwarding when the node will be leader in slot_hashes::MAX_ENTRIES * 3 slots. This comes out to 512 * 3 = 1536 slots. However, any transaction with a blockhash exeeding MAX_PROCESSING_AGE (150) non-skipped slots is expired and invalid. Thus, there is no point in sending votes to BankingStage until we are within MAX_PROCESSING_AGE (150) slots of our leader window. So, shorten the lookead window down to MAX_PROCESSING_AGE slots.
- Loading branch information