Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orderers/pbft: rely on mempool to handle proposal timeouts #517

Closed
wants to merge 1 commit into from

Conversation

abread
Copy link
Contributor

@abread abread commented Sep 19, 2023

Currently ISS(PBFT) waits for a timer before requesting transactions to propose, but this means inducing an artificial latency on any proposal (1s by default).

This PR changes the PBFT orderer to immediately request transactions from the mempool, and sets the timeout in the mempool instead (the logic was already implemented, this was probably forgotten along the way).

Note: I did not investigate thoroughly whether the ProposalTimeout event in PBFT is still necessary, nor an alternative name for it that better fits its usage.

@matejpavlovic
Copy link
Contributor

Thanks for pointing this out, I see you really have a very good understanding of how the system works!
I was actually thinking about removing this timeout altogether, as you propose, but I decided to keep it.
Instead, I just set the timeout value to zero in this particular setup.

In case Trantor is used with a mempool that does not support timeouts (as is, in fact, the case when used with the Lotus Filecoin node software), this still might come in handy.

@abread
Copy link
Contributor Author

abread commented Sep 25, 2023

I see. Would it make sense to instead change the default timeout to 0 instead?

@matejpavlovic
Copy link
Contributor

Yes it absolutely would. Just created an issue for that. (#519)

@abread abread closed this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants