Add share cards
This commit is contained in:
51 files changed
+1193
-239
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// Package zmqmon subscribes to bitcoind's ZMQ `hashblock` topic and
|
||||
// emits a lightweight event each time a new chain tip appears.
|
||||
//
|
||||
// This is strictly an "immediate refresh trigger" — it does NOT replace
|
||||
// This is strictly an "immediate refresh trigger", it does NOT replace
|
||||
// the ckpool log tailer, which still handles our own solved-block
|
||||
// detection. ZMQ just shortens the latency between bitcoind seeing a
|
||||
// new tip and the Kamado dashboard reflecting it (otherwise we'd wait
|
||||
@@ -34,7 +34,7 @@ type Monitor struct {
|
||||
}
|
||||
|
||||
// New returns a Monitor with a buffered event channel. Endpoint may be
|
||||
// empty, in which case Run exits immediately as a no-op — useful for
|
||||
// empty, in which case Run exits immediately as a no-op, useful for
|
||||
// deployments where ZMQ isn't configured on bitcoind.
|
||||
func New(endpoint string, log *slog.Logger) *Monitor {
|
||||
return &Monitor{
|
||||
|
||||
Reference in new issue
Block a user