Skip to content

Fix pool stamp topup timeout + pool TTL metric#203

Merged
crtahlin merged 1 commit into
mainfrom
dev
Apr 17, 2026
Merged

Fix pool stamp topup timeout + pool TTL metric#203
crtahlin merged 1 commit into
mainfrom
dev

Conversation

@crtahlin
Copy link
Copy Markdown

Fixes pool stamps never being topped up (bulk fetch timeout) and adds pool-specific TTL metric for alerting.

…tamps (#202)

_get_stamp_ttl was calling get_all_stamps_processed() which fetches
all stamps from /batches (567 stamps). This likely timed out at 10s,
causing _get_stamp_ttl to return None, which skips the topup entirely.

Changed to direct per-stamp lookup via /stamps/{batch_id} which returns
in <100ms. This fixes pool stamps never being topped up despite having
sufficient BZZ balance.
@crtahlin crtahlin merged commit 2983d0a into main Apr 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant