-
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
| L2BlockTime string | ||
| L2BuilderAddress string | ||
| L2RPC string | ||
| ServerListenAddress string |
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 do you need the ServerListenAddress field? It seems that it complicates the component and it is not used.
| l2BlockTime := fmt.Sprintf("%ds", o.blockTime) | ||
|
|
||
| svcManager.AddService("chain-monitor", &ChainMonitor{ | ||
| L1RPC: Connect("el", "http"), |
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.
If possible and it is always the same, I prefer to use only the service name (el) and let the component call Connect itself.
| }) | ||
|
|
||
| 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.
Add new
--chain-monitorflag for opstack recipe to bootstrap https://github.com/flashbots/chain-monitorUsing
0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266as builder signer for op-rbuilder