Skip to content

fix(rootwallet): retry wallet update with other clients on failure#188

Merged
barnabasbusa merged 1 commit intomasterfrom
bbusa/fix-init-root-wallet
Feb 9, 2026
Merged

fix(rootwallet): retry wallet update with other clients on failure#188
barnabasbusa merged 1 commit intomasterfrom
bbusa/fix-init-root-wallet

Conversation

@barnabasbusa
Copy link
Contributor

Try to update the root wallet state using all available clients in the client pool. This ensures that if one client fails to update the state (e.g., due to temporary network issues or unavailability), the wallet initialization process can succeed by using another working client. If all clients fail, an error indicating the failure of all attempts is returned.

fixing startup bug like:

panic: failed to init root wallet: Post "https://eth:***@rpc.lighthouse-reth-1.perf-devnet-2.ethpandaops.io": context deadline exceeded

goroutine 1 [running]:
main.main()
	/home/runner/work/spamoor/spamoor/cmd/spamoor-daemon/main.go:179 +0x1393

Try to update the root wallet state using all available clients in the client pool.
This ensures that if one client fails to update the state (e.g., due to temporary network issues or unavailability), the wallet initialization process can succeed by using another working client.
If all clients fail, an error indicating the failure of all attempts is returned.
@barnabasbusa barnabasbusa requested a review from pk910 February 9, 2026 11:22
@barnabasbusa barnabasbusa merged commit 4ceb329 into master Feb 9, 2026
1 check passed
@barnabasbusa barnabasbusa deleted the bbusa/fix-init-root-wallet branch February 9, 2026 13:47
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