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

Move d.lastBlockTime setting to PrepareRequest receival #55

Open
roman-khimov opened this issue Aug 26, 2021 · 1 comment
Open

Move d.lastBlockTime setting to PrepareRequest receival #55

roman-khimov opened this issue Aug 26, 2021 · 1 comment
Labels
enhancement Improving existing functionality I3 Minimal impact S4 Routine U4 Nothing urgent

Comments

@roman-khimov
Copy link
Member

While #46 adjusted the timer for block processing time we can try making things even better and adjust for network communication as well (as it's very significant for real networks, see nspcc-dev/neo-go#1770 as well) by carefully moving lastBlockTime setting to PrepareRequest receival. This way we only have one average message delay between this time locally and the timestamp in block header (from Primary).

It needs to be well-tested for various cases including changing views.

roman-khimov added a commit that referenced this issue Nov 29, 2021
It's the earliest point, if a view change happens the timer is reset (because
new view comes with a new set of transactions, potentially picking up ones
received between views).
@roman-khimov roman-khimov added enhancement Improving existing functionality U4 Nothing urgent S4 Routine I3 Minimal impact labels Dec 20, 2023
@roman-khimov
Copy link
Member Author

It'd be nice to retest #56, a lot of things have changed since.

roman-khimov added a commit that referenced this issue Jun 13, 2024
It's the earliest point, if a view change happens the timer is reset (because
new view comes with a new set of transactions, potentially picking up ones
received between views).

Signed-off-by: Roman Khimov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality I3 Minimal impact S4 Routine U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

1 participant