mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-04-13 06:33:38 +00:00
Previously check_health() always returned Ok(()) - completely useless.
Now returns HealthStatus { chain_height, is_healthy } so clients can:
1. Call check_health() once to get current chain_height
2. Wait a few seconds
3. Call again - if chain_height increased, sequencer is healthy
Refs #244
19 lines
371 B
TOML
19 lines
371 B
TOML
[package]
|
|
name = "sequencer_service_rpc"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
sequencer_service_protocol.workspace = true
|
|
|
|
jsonrpsee = { workspace = true, features = ["macros"] }
|
|
|
|
[features]
|
|
client = ["jsonrpsee/client"]
|
|
server = ["jsonrpsee/server"]
|