Skip to content

Seed retry logic - #1774

Merged
i5hi merged 7 commits into
developfrom
seed-fetch-retry
Jan 12, 2026
Merged

Seed retry logic#1774
i5hi merged 7 commits into
developfrom
seed-fetch-retry

Conversation

@i5hi

@i5hi i5hi commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

This fix assumes that app startup bloc is attempting to fetch seeds from secure storage before initialization is complete, leading to false negative Seed Not Found error, subsequently leading to the app startup error.

Solution:

Added retry logic with exponential backoff in SeedDatasource.get():
Retries up to 5 times with exponential backoff (300ms, 600ms, 1200ms, 2400ms, 4800ms)
Handles both null returns and exceptions from secure storage
On the final attempt, checks hasValue to confirm the seed doesn't exist before throwing

@i5hi
i5hi merged commit 7b8f2bd into develop Jan 12, 2026
1 check passed
@thibistaken
thibistaken deleted the seed-fetch-retry branch March 19, 2026 08:52
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.

2 participants