Skip to content

Conversation

@julio4
Copy link
Collaborator

@julio4 julio4 commented Dec 8, 2025

Add new --chain-monitor flag for opstack recipe to bootstrap https://github.com/flashbots/chain-monitor

Using 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 as builder signer for op-rbuilder

@julio4 julio4 force-pushed the feat/chain-monitor branch from ae11b20 to fa1ed4c Compare December 8, 2025 20:15
@julio4 julio4 requested a review from ferranbt December 9, 2025 20:09
L2BlockTime string
L2BuilderAddress string
L2RPC string
ServerListenAddress string
Copy link
Collaborator

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"),
Copy link
Collaborator

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").
Copy link
Collaborator

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?

Copy link
Collaborator

@ferranbt ferranbt left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants