Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Periodically check for unconfirmed frontiers and start elections #1821
Couldn't you say the same about all these frontiers that will get elections at once? It just seems strange to confirm some and not others.
clemahieu left a comment
I think this would be better to connect with the active_transactions::request_confirm loop since it's a similar functionality of collecting confirmation.
We can just call active_elections::start and then we don't need a new pending_elections container.
I think the number of election slots we put to this should be much less than the maximum, probably 1/4 instead of exactly the maximum.
Since we're attaching this to request_confirm we can use that 15 second loop timer and check frontiers less frequently for non-rep nodes and also queue up a smaller number of elections.