class

CRE::Audit::BatchSealerScheduler

Inherits Reference < Object

BatchSealerScheduler runs an idle fiber that periodically calls BatchSealer.seal_pending. Without this fiber the audit_batches table never grows and 'cre audit verify --merkle' has nothing to verify.

On each successful seal we publish AlertRaised(:info) with the sealed range; the AuditSubscriber then writes a 'audit.batch.sealed' event into the audit log itself, which closes the loop for compliance frameworks that key on that event_type.

Constants

Log = ::Log.for("cre.batch_sealer")

Constructors

new(bus : Engine::EventBus, sealer : BatchSealer, interval : Time::Span = 5.minutes)
Source

Instance methods

seal_once
Source
start
Source
stop
Source