-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: add invalid block hook field to tree #10432
Conversation
f36d88a
to
74ffa2f
Compare
2715369
to
61a1f94
Compare
61a1f94
to
beae63b
Compare
d156cbc
to
a61e345
Compare
6db7ae6
to
3ebd86d
Compare
3ebd86d
to
ec3c090
Compare
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
@@ -508,6 +510,29 @@ pub struct EngineApiTreeHandler<P, E, T: EngineTypes> { | |||
config: TreeConfig, | |||
/// Metrics for the engine api. | |||
metrics: EngineApiMetrics, | |||
/// A bad block hook. | |||
invalid_block_hook: Box<dyn InvalidBlockHook>, |
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.
we could also make this optional, so that it doesn't leak into the new function and use pub set_invalid_block_hook to optionally set one
but can consider doing this when we add a real impl of this
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.
yep, will address this in #10629
ref #10425