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
})

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.

@julio4 julio4 force-pushed the feat/chain-monitor branch from fa1ed4c to 1356606 Compare December 11, 2025 21:45
@julio4 julio4 requested a review from canercidam as a code owner December 11, 2025 21:45

svcManager.AddService(&ChainMonitor{
L1RPC: "el",
L2BlockTime: l2BlockTime,
Copy link
Collaborator

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?

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.

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?

@julio4
Copy link
Collaborator Author

julio4 commented Dec 13, 2025

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
@julio4 julio4 force-pushed the feat/chain-monitor branch from 1356606 to bceec6b Compare December 13, 2025 01:36
@julio4 julio4 force-pushed the feat/chain-monitor branch from bceec6b to c5c730a Compare December 13, 2025 01:39
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