-
Notifications
You must be signed in to change notification settings - Fork 283
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 block_gossip SSE event #7941
Add block_gossip SSE event #7941
Conversation
b6236df
to
cc95415
Compare
@Option( | ||
names = {"--beacon-events-block-notify-when-validated-enabled"}, | ||
paramLabel = "<BOOLEAN>", | ||
showDefaultValue = Visibility.ALWAYS, | ||
description = | ||
"Block notification events will be sent once the block has been validated, prior to attempting to import the block. The optimistic flag will be determined based on if chain head is optimistic.", | ||
arity = "0..1", | ||
fallbackValue = "true") | ||
private Boolean beaconEventsBlockNotifyWhenValidated = | ||
BeaconRestApiConfig.DEFAULT_BEACON_EVENTS_BLOCK_NOTIFY_WHEN_VALIDATED_ENABLED; | ||
|
||
@Option( | ||
names = {"--beacon-events-block-notify-when-imported-enabled"}, | ||
paramLabel = "<BOOLEAN>", | ||
showDefaultValue = Visibility.ALWAYS, | ||
description = | ||
"Block notification events will be sent once the block has been imported, at which point we can accurately set the optimistic flag.", | ||
arity = "0..1", | ||
fallbackValue = "true") | ||
private Boolean beaconEventsBlockNotifyWhenImported = | ||
BeaconRestApiConfig.DEFAULT_BEACON_EVENTS_BLOCK_NOTIFY_WHEN_IMPORTED_ENABLED; | ||
|
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.
breaking change
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.
Yup, forgot the changelog. Added now.
8624210
to
8dbff66
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
8dbff66
to
a3ca213
Compare
PR Description
block_gossip
event when block is validated.ImportedBlockListener
toReceivedBlockListener
and addonValidated
method--beacon-events-block-notify-when-validated-enabled
and--beacon-events-block-notify-when-imported-enabled
since now we have two SSE eventsTODO:
I still find
BlockImportNotifications
andReceivedBlockListener
bit redundant.Fixed Issue(s)
fixes #7513
Documentation
doc-change-required
label to this PR if updates are required.Changelog