-
Notifications
You must be signed in to change notification settings - Fork 40
feat: add chain-monitor
#225
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
base: main
Are you sure you want to change the base?
Conversation
ae11b20 to
fa1ed4c
Compare
playground/recipe_opstack.go
Outdated
| }) | ||
|
|
||
| svcManager.MustGetService("chain-monitor"). | ||
| DependsOnHealthy("el"). |
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.
Why don't you define this DependsOnHealthy on the component?
ferranbt
left a comment
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 good - just a few questions.
fa1ed4c to
1356606
Compare
playground/recipe_opstack.go
Outdated
|
|
||
| svcManager.AddService(&ChainMonitor{ | ||
| L1RPC: "el", | ||
| L2BlockTime: l2BlockTime, |
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.
Why not pass the int directly and convert to string in the component?
ferranbt
left a comment
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! One final comment though. Normally, the health checks are used for services that stop right away if the other service is not available. Does that happen for chain monitor? Or it would just start anyway and connect once the other services ara available?
Yeah clearly not sure if it's the best way but when launching chain-monitor if the metric ports of targeted services are not available it shutdown. Is there a better way to wait? |
# Conflicts: # playground/components.go # Conflicts: # playground/catalog.go # Conflicts: # playground/catalog.go
1356606 to
bceec6b
Compare
bceec6b to
c5c730a
Compare
Add new
--chain-monitorflag for opstack recipe to bootstrap https://github.com/flashbots/chain-monitorUsing
0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266as builder signer for op-rbuilder