Summary
tools/webhooks/webhook_server.py parses WEBHOOK_POLL_INTERVAL and LARGE_TX_THRESHOLD with module-level numeric casts.
Malformed values can crash the webhook dispatcher during import before CLI args, defaults, or admin routes can be used.
Impact
A simple webhook configuration typo such as WEBHOOK_POLL_INTERVAL=fast or LARGE_TX_THRESHOLD=huge can prevent the dispatcher from loading. The tool already has safe defaults, so malformed numeric env values should fall back instead of import-crashing.
Expected
Missing, empty, or malformed numeric environment values should fall back to existing defaults without changing valid configuration behavior.
Scope
Small webhook-tool config hardening only. No node, wallet, transfer, reward, payout, admin-key, or production behavior changes.
Summary
tools/webhooks/webhook_server.pyparsesWEBHOOK_POLL_INTERVALandLARGE_TX_THRESHOLDwith module-level numeric casts.Malformed values can crash the webhook dispatcher during import before CLI args, defaults, or admin routes can be used.
Impact
A simple webhook configuration typo such as
WEBHOOK_POLL_INTERVAL=fastorLARGE_TX_THRESHOLD=hugecan prevent the dispatcher from loading. The tool already has safe defaults, so malformed numeric env values should fall back instead of import-crashing.Expected
Missing, empty, or malformed numeric environment values should fall back to existing defaults without changing valid configuration behavior.
Scope
Small webhook-tool config hardening only. No node, wallet, transfer, reward, payout, admin-key, or production behavior changes.