Skip to content

Make the stuck-transaction monitor's thresholds node-configurable #4176

Description

@mswilkison

The transactionMonitor added in #4174 uses compile-time constants for all of its tunables:

  • defaultStuckTransactionThreshold (6h) — how long unconfirmed before "stuck"
  • transactionMonitorCheckInterval (5m) — poll cadence
  • transactionMonitorMaxTracked (1000) — tracking-table bound
  • transactionMonitorMaxTrackingAge (24h) — give-up age
  • transactionMonitorCheckBudget (2m) — per-pass time budget

None can be tuned without a code change and rebuild.

Follow-up (raised in review of #4174): move these into the tbtc node config with the current values as defaults, so operators/deployments can adjust the stuck threshold and cadence without recompiling.

Refs #4174.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions