Captures the ready endpoints and immutable boundary from a running stack.
(stack: &SnapshotL2Stack)
| 184 | impl SnapshotRuntime { |
| 185 | /// Captures the ready endpoints and immutable boundary from a running stack. |
| 186 | pub fn ready(stack: &SnapshotL2Stack) -> Result<Self> { |
| 187 | let boundary = stack.boundary(); |
| 188 | Ok(Self { |
| 189 | status: "ready", |
| 190 | chain_id: stack.chain_id(), |
| 191 | boundary_number: boundary.head.number, |
| 192 | boundary_hash: boundary.head.hash, |
| 193 | block_interval_ms: stack.block_interval().duration().as_millis() as u64, |
| 194 | block_gas_limit: stack.block_gas_limit(), |
| 195 | builder_rpc_url: stack.builder_rpc_url()?.to_string(), |
| 196 | builder_flashblocks_url: stack.builder_flashblocks_url()?.to_string(), |
| 197 | client_rpc_url: stack.client_rpc_url()?.to_string(), |
| 198 | }) |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | #[cfg(test)] |
nothing calls this directly
no test coverage detected