Add reset-latency StartOS action

Calls POST /api/admin/reset-latency to zero the block-update latency
counters. Available while the service is running, no warning needed.
This commit is contained in:
satoshi
2026-05-11 02:18:48 +03:00
parent c925dceecc
commit cb01a16af8
2 changed files with 48 additions and 0 deletions
+8
View File
@@ -166,6 +166,14 @@ actions:
- stopped
implementation:
type: script
reset-latency:
name: "Reset Block Latency"
description: "Zeroes the block-update latency counters (avg, last, wasted work, block count). Use this after tuning ZMQ or ckpool to start fresh measurements."
warning: ~
allowed-statuses:
- running
implementation:
type: script
migrations:
from: