-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
add a clock to validator windows (part 3 of #309) #448
add a clock to validator windows (part 3 of #309) #448
Conversation
rob-solana
commented
Jun 25, 2018
- count entries processed by Bank
- initialize windows with initial height of Entries
* count entries processed by Bank * initialize windows with initial height of Entries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this could use a test. I'd think that you need to pass entry_count()
to the leader's default_window()
for the validator to see the same count as the leader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
if !entry.transactions.is_empty() { | ||
for result in self.process_transactions(entry.transactions) { | ||
result?; | ||
} | ||
} | ||
self.register_entry_id(&entry.id); | ||
} | ||
Ok(()) | ||
Ok(self.entry_count()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rob-solana, It's strange to both return this value and set a state variable. You're offering two ways to get the same information. I'd recommend getting rid of the state variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the return value is a nice info thingie. the state variable is the real useful one: it's pulled out later for server/streamer/window construction
…olana-labs#448)" This reverts commit 1919ec2.
…olana-labs#448)" This reverts commit 1919ec2.
* Remove pack's dependency on TokenError * nudge
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586) Update release URLs for jito-solana (solana-labs#589) Backports solana-labs#595: correctly initialize account overrides (solana-labs#599) Fix: Ensure set contact info to UDP port instead of QUIC (solana-labs#601) Buffer bundles that exceed processing time and make the allowed processing time longer (solana-labs#609)
Backport clone derivation (416) (solana-labs#418) backports solana-labs#430: update jito-programs (solana-labs#432) Backport solana-labs#446 to v1.17 (solana-labs#448) [JIT-1661] Faster Autosnapshot (solana-labs#445) v1.17: Backport solana-labs#449 (solana-labs#451) backports solana-labs#419: add upsert to accountoverrides (solana-labs#421) backport 428 runtime-plugin (solana-labs#458) [JIT-1713] Fix bundle's blockspace preallocation (Backport to 1.17) (solana-labs#499) Backport solana-labs#500 to v1.17 (solana-labs#507) Backport solana-labs#520: add priority fees to mev claim (solana-labs#525) Faster MEV tip claiming (v1.17) (solana-labs#568) Backport Release Fixes (solana-labs#586) Update release URLs for jito-solana (solana-labs#589) Backports solana-labs#595: correctly initialize account overrides (solana-labs#599) Fix: Ensure set contact info to UDP port instead of QUIC (solana-labs#601) Buffer bundles that exceed processing time and make the allowed processing time longer (solana-labs#609)