Skip to content

Removed the timeout from wallet recover as large nodes were having issues - #1154

Open
0xfornax wants to merge 3 commits into
masterfrom
remove-timeout-recover-wallet
Open

Removed the timeout from wallet recover as large nodes were having issues#1154
0xfornax wants to merge 3 commits into
masterfrom
remove-timeout-recover-wallet

Conversation

@0xfornax

@0xfornax 0xfornax commented Jul 31, 2026

Copy link
Copy Markdown
Member

Wallet recover and rebuild on large nodes can exceed the CLIs default HTTP timeout. This PR drops that timeout. The daemon now allows only one recover, test-recovery, or rebuild at a time, exposes progress via GET /api/wallet/recovery-status, and rejects concurrent attempts with the in-flight operation and key progress. The CLI now confirms the effects of those commands, polls and prints recovery progress, and reports if work is already running on the daemon.

@0xfornax 0xfornax changed the title Removed the timeout from commands where large nodes were having issues Removed the timeout from wallet recover as large nodes were having issues Jul 31, 2026
@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

Coverage Report

@0xfornax
0xfornax force-pushed the remove-timeout-recover-wallet branch from b429f60 to 9393e21 Compare August 1, 2026 14:04
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Coverage Report

@0xfornax
0xfornax force-pushed the remove-timeout-recover-wallet branch from 9393e21 to ec06c62 Compare August 1, 2026 18:08
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Coverage Report

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Coverage Report

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Merging this branch changes the coverage (1 decrease, 2 increase)

Impacted Packages Coverage Δ 🤖
github.com/rocket-pool/smartnode/rocketpool-cli/wallet 0.50% (+0.50%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/wallet 0.73% (+0.73%) 👍
github.com/rocket-pool/smartnode/shared/services/rocketpool 0.00% (ø)
github.com/rocket-pool/smartnode/shared/types/api 5.85% (-0.73%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/rocket-pool/smartnode/rocketpool-cli/wallet/commands.go 0.00% (ø) 731 (+43) 0 731 (+43)
github.com/rocket-pool/smartnode/rocketpool-cli/wallet/confirm-recovery.go 0.00% (ø) 250 (+250) 0 250 (+250)
github.com/rocket-pool/smartnode/rocketpool-cli/wallet/rebuild.go 0.00% (ø) 746 (+190) 0 746 (+190)
github.com/rocket-pool/smartnode/rocketpool-cli/wallet/recover.go 0.00% (ø) 1632 (+323) 0 1632 (+323)
github.com/rocket-pool/smartnode/rocketpool-cli/wallet/recovery-status.go 4.92% (+4.92%) 1139 (+1139) 56 (+56) 1083 (+1083) 👍
github.com/rocket-pool/smartnode/rocketpool-cli/wallet/test.go 0.00% (ø) 1534 (+295) 0 1534 (+295)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/recover.go 0.00% (ø) 3521 (+270) 0 3521 (+270)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/recovery-lock.go 11.49% (+11.49%) 618 (+618) 71 (+71) 547 (+547) 🎉
github.com/rocket-pool/smartnode/rocketpool/api/wallet/routes.go 0.00% (ø) 1341 (+184) 0 1341 (+184)
github.com/rocket-pool/smartnode/shared/services/rocketpool/wallet.go 0.00% (ø) 2573 (+462) 0 2573 (+462)
github.com/rocket-pool/smartnode/shared/types/api/wallet.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/rocket-pool/smartnode/rocketpool-cli/wallet/recovery-status_test.go
  • github.com/rocket-pool/smartnode/rocketpool/api/wallet/recovery-lock_test.go

@0xfornax
0xfornax marked this pull request as ready for review August 1, 2026 18:15
@0xfornax

0xfornax commented Aug 2, 2026

Copy link
Copy Markdown
Member Author

Closes #1149

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