Skip to content

Api improvements - #1185

Merged
0xfornax merged 11 commits into
masterfrom
api-improvements
Aug 25, 2026
Merged

Api improvements#1185
0xfornax merged 11 commits into
masterfrom
api-improvements

Conversation

@0xfornax

@0xfornax 0xfornax commented Aug 20, 2026

Copy link
Copy Markdown
Member

Adds configurable Smart Node HTTP API exposure (closed, localhost, or external) and a dedicated API settings category with a new API token. Remote and local clients must authenticate according to a token-requirement mode (all routes, or only mutating ones such as transactions, wallet operations, and validator exits).

Adds rate limit capabilities. The default will not enforce limits.

Request logs now include the client IP.

@0xfornax
0xfornax force-pushed the api-improvements branch 2 times, most recently from 31ccf2e to 9fce37d Compare August 20, 2026 19:15
@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

Coverage Report

@0xfornax
0xfornax marked this pull request as ready for review August 21, 2026 19:30
Comment thread rocketpool/node/sensitive.go Outdated
@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

Coverage Report

Comment thread rocketpool/api/snroute/snroute.go
@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

Coverage Report

@jshufro jshufro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions but this feels like a good step forward overall so nothing urgent or blocking

Comment thread shared/services/apitoken/token.go
Comment thread shared/services/apitoken/token.go Outdated
Comment thread shared/services/config/api-config.go
Comment thread shared/services/config/rocket-pool-config.go Outdated
@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

Coverage Report

@github-actions

Copy link
Copy Markdown

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

Impacted Packages Coverage Δ 🤖
github.com/rocket-pool/smartnode/rocketpool-cli/cli/prompt 0.00% (ø)
github.com/rocket-pool/smartnode/rocketpool-cli/cli/term 0.00% (ø)
github.com/rocket-pool/smartnode/rocketpool-cli/service 0.00% (ø)
github.com/rocket-pool/smartnode/rocketpool-cli/service/config 0.00% (ø)
github.com/rocket-pool/smartnode/rocketpool/api 1.26% (+1.26%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/auction 0.16% (+0.16%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/debug 0.05% (+0.05%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/megapool 0.09% (+0.09%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/minipool 0.13% (+0.13%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/network 0.17% (+0.17%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/node 0.09% (+0.09%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/odao 0.12% (+0.12%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/pdao 0.13% (+0.05%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/queue 0.25% (+0.25%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/response 7.42% (+7.42%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/security 0.18% (+0.18%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/service 0.41% (+0.41%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/snroute 8.42% (+8.42%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/upgrade 0.25% (+0.25%) 👍
github.com/rocket-pool/smartnode/rocketpool/api/wallet 0.71% (+0.12%) 👍
github.com/rocket-pool/smartnode/rocketpool/node 0.50% (+0.07%) 👍
github.com/rocket-pool/smartnode/rocketpool/node/routes 7.67% (+7.67%) 👍
github.com/rocket-pool/smartnode/shared/services 0.12% (-0.02%) 👎
github.com/rocket-pool/smartnode/shared/services/apitoken 6.59% (+6.59%) 👍
github.com/rocket-pool/smartnode/shared/services/config 3.31% (+0.32%) 👍
github.com/rocket-pool/smartnode/shared/services/config/migration 2.11% (+2.11%) 👍
github.com/rocket-pool/smartnode/shared/services/rocketpool 0.00% (ø)
github.com/rocket-pool/smartnode/shared/types/config 4.81% (+1.46%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/rocket-pool/smartnode/rocketpool-cli/cli/prompt/prompt.go 0.00% (ø) 1221 (+432) 0 1221 (+432)
github.com/rocket-pool/smartnode/rocketpool-cli/cli/term/term.go 0.00% (ø) 78 (+78) 0 78 (+78)
github.com/rocket-pool/smartnode/rocketpool-cli/service/config/settings-api.go 0.00% (ø) 589 (+589) 0 589 (+589)
github.com/rocket-pool/smartnode/rocketpool-cli/service/config/settings-home.go 0.00% (ø) 2415 (+332) 0 2415 (+332)
github.com/rocket-pool/smartnode/rocketpool-cli/service/config/settings-native-home.go 0.00% (ø) 2179 (+293) 0 2179 (+293)
github.com/rocket-pool/smartnode/rocketpool-cli/service/service.go 0.00% (ø) 23382 (+2796) 0 23382 (+2796)
github.com/rocket-pool/smartnode/rocketpool/api/auction/bid-lot.go 0.00% (ø) 2002 (+628) 0 2002 (+628)
github.com/rocket-pool/smartnode/rocketpool/api/auction/claim-lot.go 0.00% (ø) 1896 (+616) 0 1896 (+616)
github.com/rocket-pool/smartnode/rocketpool/api/auction/create-lot.go 0.00% (ø) 1501 (+383) 0 1501 (+383)
github.com/rocket-pool/smartnode/rocketpool/api/auction/lots.go 0.00% (ø) 553 (+110) 0 553 (+110)
github.com/rocket-pool/smartnode/rocketpool/api/auction/recover-lot.go 0.00% (ø) 1948 (+622) 0 1948 (+622)
github.com/rocket-pool/smartnode/rocketpool/api/auction/routes.go 3.72% (+3.72%) 538 (-1405) 20 (+20) 518 (-1425) 👍
github.com/rocket-pool/smartnode/rocketpool/api/auction/status.go 0.00% (ø) 1337 (+200) 0 1337 (+200)
github.com/rocket-pool/smartnode/rocketpool/api/debug/rewards-event.go 0.00% (ø) 1168 (+367) 0 1168 (+367)
github.com/rocket-pool/smartnode/rocketpool/api/debug/routes.go 7.69% (+7.69%) 26 (-232) 2 (+2) 24 (-234) 👍
github.com/rocket-pool/smartnode/rocketpool/api/megapool/beacon-withdrawal-queue-estimate.go 0.00% (ø) 712 (+128) 0 712 (+128)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/claim-refunds.go 0.00% (ø) 1846 (+422) 0 1846 (+422)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/delegate.go 0.00% (ø) 4999 (+1368) 0 4999 (+1368)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/dissolve-validator.go 0.00% (ø) 2112 (+640) 0 2112 (+640)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/dissolve-with-proof.go 0.00% (ø) 2836 (+722) 0 2836 (+722)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/distribute.go 0.00% (ø) 2114 (+452) 0 2114 (+452)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/exit-queue.go 0.00% (ø) 2031 (+631) 0 2031 (+631)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/exit-validator.go 0.00% (ø) 2158 (+528) 0 2158 (+528)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/latest-block-withdrawals.go 0.00% (ø) 842 (+143) 0 842 (+143)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/new-validator-bond.go 0.00% (ø) 790 (+137) 0 790 (+137)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/notify-final-balance.go 0.00% (ø) 3963 (+1038) 0 3963 (+1038)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/notify-validator-exit.go 0.00% (ø) 3405 (+787) 0 3405 (+787)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/reduce-bond.go 0.00% (ø) 2191 (+649) 0 2191 (+649)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/repay-debt.go 0.00% (ø) 2505 (+683) 0 2505 (+683)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/routes.go 3.81% (+3.81%) 945 (-5472) 36 (+36) 909 (-5508) 👍
github.com/rocket-pool/smartnode/rocketpool/api/megapool/stake.go 0.00% (ø) 2886 (+728) 0 2886 (+728)
github.com/rocket-pool/smartnode/rocketpool/api/megapool/status.go 0.00% (ø) 3799 (+738) 0 3799 (+738)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/change-withdrawal-creds.go 0.00% (ø) 3454 (+723) 0 3454 (+723)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/close.go 0.00% (ø) 7027 (+1140) 0 7027 (+1140)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/delegate.go 0.00% (ø) 5596 (+1987) 0 5596 (+1987)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/dissolve.go 0.00% (ø) 1584 (+580) 0 1584 (+580)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/distribute.go 0.00% (ø) 3462 (+700) 0 3462 (+700)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/exit.go 0.00% (ø) 1844 (+492) 0 1844 (+492)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/import-key.go 0.00% (ø) 1345 (+318) 0 1345 (+318)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/promote.go 0.00% (ø) 2163 (+646) 0 2163 (+646)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/refund.go 0.00% (ø) 1584 (+580) 0 1584 (+580)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/rescue-dissolved.go 0.00% (ø) 4861 (+1004) 0 4861 (+1004)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/routes.go 7.52% (+7.52%) 771 (-4793) 58 (+58) 713 (-4851) 👍
github.com/rocket-pool/smartnode/rocketpool/api/minipool/stake.go 0.00% (ø) 3375 (+784) 0 3375 (+784)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/status.go 0.00% (ø) 844 (+143) 0 844 (+143)
github.com/rocket-pool/smartnode/rocketpool/api/minipool/vanity.go 0.00% (ø) 1219 (+327) 0 1219 (+327)
github.com/rocket-pool/smartnode/rocketpool/api/network/dao-proposals.go 0.00% (ø) 2425 (+328) 0 2425 (+328)
github.com/rocket-pool/smartnode/rocketpool/api/network/delegate.go 0.00% (ø) 285 (+79) 0 285 (+79)
github.com/rocket-pool/smartnode/rocketpool/api/network/download-rewards.go 0.00% (ø) 670 (+216) 0 670 (+216)
github.com/rocket-pool/smartnode/rocketpool/api/network/generate-tree.go 0.00% (ø) 1034 (+396) 0 1034 (+396)
github.com/rocket-pool/smartnode/rocketpool/api/network/node-fee.go 0.00% (ø) 840 (+143) 0 840 (+143)
github.com/rocket-pool/smartnode/rocketpool/api/network/routes.go 5.71% (+5.71%) 315 (-686) 18 (+18) 297 (-704) 👍
github.com/rocket-pool/smartnode/rocketpool/api/network/rpl-price.go 0.00% (ø) 607 (+116) 0 607 (+116)
github.com/rocket-pool/smartnode/rocketpool/api/network/stats.go 0.00% (ø) 3775 (+476) 0 3775 (+476)
github.com/rocket-pool/smartnode/rocketpool/api/network/timezones.go 0.00% (ø) 581 (+113) 0 581 (+113)
github.com/rocket-pool/smartnode/rocketpool/api/node/alerts.go 0.00% (ø) 362 (+88) 0 362 (+88)
github.com/rocket-pool/smartnode/rocketpool/api/node/balances.go 0.00% (ø) 474 (+101) 0 474 (+101)
github.com/rocket-pool/smartnode/rocketpool/api/node/burn.go 0.00% (ø) 2000 (+676) 0 2000 (+676)
github.com/rocket-pool/smartnode/rocketpool/api/node/check-collateral.go 0.00% (ø) 660 (+122) 0 660 (+122)
github.com/rocket-pool/smartnode/rocketpool/api/node/claim-rewards.go 0.00% (ø) 6787 (+1528) 0 6787 (+1528)
github.com/rocket-pool/smartnode/rocketpool/api/node/claim-rpl.go 0.00% (ø) 1636 (+398) 0 1636 (+398)
github.com/rocket-pool/smartnode/rocketpool/api/node/claim-unclaimed-rewards.go 0.00% (ø) 1162 (+392) 0 1162 (+392)
github.com/rocket-pool/smartnode/rocketpool/api/node/create-vacant-minipool.go 0.00% (ø) 3959 (+850) 0 3959 (+850)
github.com/rocket-pool/smartnode/rocketpool/api/node/deposit-contract-info.go 0.00% (ø) 794 (+137) 0 794 (+137)
github.com/rocket-pool/smartnode/rocketpool/api/node/deposit.go 0.00% (ø) 6792 (+1174) 0 6792 (+1174)
github.com/rocket-pool/smartnode/rocketpool/api/node/distributor.go 0.00% (ø) 3693 (+891) 0 3693 (+891)
github.com/rocket-pool/smartnode/rocketpool/api/node/ens-name.go 0.00% (ø) 749 (+227) 0 749 (+227)
github.com/rocket-pool/smartnode/rocketpool/api/node/express-ticket.go 0.00% (ø) 2321 (+570) 0 2321 (+570)
github.com/rocket-pool/smartnode/rocketpool/api/node/get-bond-requirement.go 0.00% (ø) 389 (+183) 0 389 (+183)
github.com/rocket-pool/smartnode/rocketpool/api/node/primary-withdrawal-address.go 0.00% (ø) 2917 (+851) 0 2917 (+851)
github.com/rocket-pool/smartnode/rocketpool/api/node/register.go 0.00% (ø) 1634 (+446) 0 1634 (+446)
github.com/rocket-pool/smartnode/rocketpool/api/node/rewards.go 0.00% (ø) 6514 (+788) 0 6514 (+788)
github.com/rocket-pool/smartnode/rocketpool/api/node/routes.go 4.38% (+4.38%) 1917 (-12826) 84 (+84) 1833 (-12910) 👍
github.com/rocket-pool/smartnode/rocketpool/api/node/rpl-withdrawal-address.go 0.00% (ø) 3445 (+911) 0 3445 (+911)
github.com/rocket-pool/smartnode/rocketpool/api/node/send-message.go 0.00% (ø) 1322 (+598) 0 1322 (+598)
github.com/rocket-pool/smartnode/rocketpool/api/node/send.go 0.00% (ø) 6191 (+1421) 0 6191 (+1421)
github.com/rocket-pool/smartnode/rocketpool/api/node/set-rpl-lock-allowed.go 0.00% (ø) 1478 (+428) 0 1478 (+428)
github.com/rocket-pool/smartnode/rocketpool/api/node/set-stake-rpl-for-allowed.go 0.00% (ø) 1112 (+434) 0 1112 (+434)
github.com/rocket-pool/smartnode/rocketpool/api/node/set-timezone.go 0.00% (ø) 1058 (+380) 0 1058 (+380)
github.com/rocket-pool/smartnode/rocketpool/api/node/sign-message.go 0.00% (ø) 312 (+106) 0 312 (+106)
github.com/rocket-pool/smartnode/rocketpool/api/node/sign.go 0.00% (ø) 476 (+125) 0 476 (+125)
github.com/rocket-pool/smartnode/rocketpool/api/node/smoothing-pool.go 0.00% (ø) 3164 (+737) 0 3164 (+737)
github.com/rocket-pool/smartnode/rocketpool/api/node/stake-rpl.go 0.00% (ø) 3882 (+1544) 0 3882 (+1544)
github.com/rocket-pool/smartnode/rocketpool/api/node/status.go 0.00% (ø) 9172 (+1101) 0 9172 (+1101)
github.com/rocket-pool/smartnode/rocketpool/api/node/swap-rpl.go 0.00% (ø) 3956 (+1556) 0 3956 (+1556)
github.com/rocket-pool/smartnode/rocketpool/api/node/sync.go 0.00% (ø) 435 (+96) 0 435 (+96)
github.com/rocket-pool/smartnode/rocketpool/api/node/unstake-rpl.go 0.00% (ø) 2093 (+637) 0 2093 (+637)
github.com/rocket-pool/smartnode/rocketpool/api/node/withdraw-credit.go 0.00% (ø) 1559 (+577) 0 1559 (+577)
github.com/rocket-pool/smartnode/rocketpool/api/node/withdraw-eth.go 0.00% (ø) 1877 (+613) 0 1877 (+613)
github.com/rocket-pool/smartnode/rocketpool/api/node/withdraw-legacy-rpl.go 0.00% (ø) 2253 (+655) 0 2253 (+655)
github.com/rocket-pool/smartnode/rocketpool/api/node/withdraw-rpl.go 0.00% (ø) 5272 (+1209) 0 5272 (+1209)
github.com/rocket-pool/smartnode/rocketpool/api/odao/cancel-proposal.go 0.00% (ø) 1792 (+604) 0 1792 (+604)
github.com/rocket-pool/smartnode/rocketpool/api/odao/execute-proposal.go 0.00% (ø) 1686 (+592) 0 1686 (+592)
github.com/rocket-pool/smartnode/rocketpool/api/odao/get-settings.go 0.00% (ø) 2119 (+381) 0 2119 (+381)
github.com/rocket-pool/smartnode/rocketpool/api/odao/join.go 0.00% (ø) 2971 (+831) 0 2971 (+831)
github.com/rocket-pool/smartnode/rocketpool/api/odao/leave.go 0.00% (ø) 1555 (+483) 0 1555 (+483)
github.com/rocket-pool/smartnode/rocketpool/api/odao/members.go 0.00% (ø) 343 (+86) 0 343 (+86)
github.com/rocket-pool/smartnode/rocketpool/api/odao/penalise-megapool.go 0.00% (ø) 1374 (+556) 0 1374 (+556)
github.com/rocket-pool/smartnode/rocketpool/api/odao/proposals.go 0.00% (ø) 1212 (+326) 0 1212 (+326)
github.com/rocket-pool/smartnode/rocketpool/api/odao/propose-invite.go 0.00% (ø) 1742 (+598) 0 1742 (+598)
github.com/rocket-pool/smartnode/rocketpool/api/odao/propose-kick.go 0.00% (ø) 2245 (+655) 0 2245 (+655)
github.com/rocket-pool/smartnode/rocketpool/api/odao/propose-leave.go 0.00% (ø) 2270 (+472) 0 2270 (+472)
github.com/rocket-pool/smartnode/rocketpool/api/odao/propose-settings.go 0.00% (ø) 15115 (+6353) 0 15115 (+6353)
github.com/rocket-pool/smartnode/rocketpool/api/odao/routes.go 3.01% (+3.01%) 1659 (-8780) 50 (+50) 1609 (-8830) 👍
github.com/rocket-pool/smartnode/rocketpool/api/odao/status.go 0.00% (ø) 1548 (+224) 0 1548 (+224)
github.com/rocket-pool/smartnode/rocketpool/api/odao/vote-proposal.go 0.00% (ø) 2139 (+691) 0 2139 (+691)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/claim-bonds.go 0.00% (ø) 2027 (+646) 0 2027 (+646)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/claimable-bonds.go 0.00% (ø) 3289 (+436) 0 3289 (+436)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/defeat-proposal.go 0.00% (ø) 2286 (+833) 0 2286 (+833)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/execute-proposal.go 0.00% (ø) 1622 (+575) 0 1622 (+575)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/finalize-proposal.go 0.00% (ø) 1750 (+590) 0 1750 (+590)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/get-settings.go 0.00% (ø) 8435 (+1078) 0 8435 (+1078)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/invite-security.go 0.00% (ø) 2065 (+628) 0 2065 (+628)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/kick-multi-security.go 0.00% (ø) 1681 (+671) 0 1681 (+671)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/kick-security.go 0.00% (ø) 1809 (+552) 0 1809 (+552)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/one-time-spend.go 0.00% (ø) 1909 (+698) 0 1909 (+698)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/override-vote.go 0.00% (ø) 1855 (+602) 0 1855 (+602)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/percentages.go 0.00% (ø) 2660 (+828) 0 2660 (+828)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/proposals.go 0.00% (ø) 2209 (+441) 0 2209 (+441)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/propose-settings-multi.go 0.00% (ø) 2798 (+803) 0 2798 (+803)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/propose-settings.go 0.00% (ø) 25380 (+3487) 0 25380 (+3487)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/recurring-spend.go 0.00% (ø) 1909 (+698) 0 1909 (+698)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/replace-security.go 0.00% (ø) 2065 (+674) 0 2065 (+674)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/routes.go 1.83% (+1.83%) 2564 (-8605) 47 (+47) 2517 (-8652) 👍
github.com/rocket-pool/smartnode/rocketpool/api/pdao/set-allow-list.go 0.00% (ø) 1909 (+698) 0 1909 (+698)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/set-snapshot-address.go 0.00% (ø) 3735 (+939) 0 3735 (+939)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/status.go 0.00% (ø) 4088 (+539) 0 4088 (+539)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/update-recurring-spend.go 0.00% (ø) 1909 (+698) 0 1909 (+698)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/vote-proposal.go 0.00% (ø) 2627 (+693) 0 2627 (+693)
github.com/rocket-pool/smartnode/rocketpool/api/pdao/voting.go 0.00% (ø) 1500 (+471) 0 1500 (+471)
github.com/rocket-pool/smartnode/rocketpool/api/queue/assign-deposits.go 0.00% (ø) 1555 (+577) 0 1555 (+577)
github.com/rocket-pool/smartnode/rocketpool/api/queue/process.go 0.00% (ø) 1555 (+577) 0 1555 (+577)
github.com/rocket-pool/smartnode/rocketpool/api/queue/queue-length.go 0.00% (ø) 711 (+128) 0 711 (+128)
github.com/rocket-pool/smartnode/rocketpool/api/queue/routes.go 3.81% (+3.81%) 315 (-826) 12 (+12) 303 (-838) 👍
github.com/rocket-pool/smartnode/rocketpool/api/queue/status.go 0.00% (ø) 634 (+119) 0 634 (+119)
github.com/rocket-pool/smartnode/rocketpool/api/response/response.go 7.42% (+7.42%) 1186 (+345) 88 (+88) 1098 (+257) 👍
github.com/rocket-pool/smartnode/rocketpool/api/security/cancel-proposal.go 0.00% (ø) 1792 (+604) 0 1792 (+604)
github.com/rocket-pool/smartnode/rocketpool/api/security/execute-proposal.go 0.00% (ø) 1686 (+592) 0 1686 (+592)
github.com/rocket-pool/smartnode/rocketpool/api/security/join.go 0.00% (ø) 1449 (+377) 0 1449 (+377)
github.com/rocket-pool/smartnode/rocketpool/api/security/leave.go 0.00% (ø) 1318 (+362) 0 1318 (+362)
github.com/rocket-pool/smartnode/rocketpool/api/security/members.go 0.00% (ø) 343 (+86) 0 343 (+86)
github.com/rocket-pool/smartnode/rocketpool/api/security/proposals.go 0.00% (ø) 1212 (+326) 0 1212 (+326)
github.com/rocket-pool/smartnode/rocketpool/api/security/propose-leave.go 0.00% (ø) 1241 (+353) 0 1241 (+353)
github.com/rocket-pool/smartnode/rocketpool/api/security/propose-settings.go 0.00% (ø) 5745 (+1010) 0 5745 (+1010)
github.com/rocket-pool/smartnode/rocketpool/api/security/routes.go 6.90% (+6.90%) 522 (-2292) 36 (+36) 486 (-2328) 👍
github.com/rocket-pool/smartnode/rocketpool/api/security/status.go 0.00% (ø) 1417 (+209) 0 1417 (+209)
github.com/rocket-pool/smartnode/rocketpool/api/security/vote-proposal.go 0.00% (ø) 2112 (+664) 0 2112 (+664)
github.com/rocket-pool/smartnode/rocketpool/api/service/gas.go 0.00% (ø) 231 (+73) 0 231 (+73)
github.com/rocket-pool/smartnode/rocketpool/api/service/restart-vc.go 0.00% (ø) 385 (+91) 0 385 (+91)
github.com/rocket-pool/smartnode/rocketpool/api/service/routes.go 7.69% (+7.69%) 104 (-176) 8 (+8) 96 (-184) 👍
github.com/rocket-pool/smartnode/rocketpool/api/service/status.go 0.00% (ø) 443 (+97) 0 443 (+97)
github.com/rocket-pool/smartnode/rocketpool/api/service/terminate.go 0.00% (ø) 774 (+138) 0 774 (+138)
github.com/rocket-pool/smartnode/rocketpool/api/snroute/snroute.go 8.42% (+8.42%) 1580 (+1580) 133 (+133) 1447 (+1447) 👍
github.com/rocket-pool/smartnode/rocketpool/api/upgrade/execute-upgrade.go 0.00% (ø) 1923 (+619) 0 1923 (+619)
github.com/rocket-pool/smartnode/rocketpool/api/upgrade/list.go 0.00% (ø) 395 (+92) 0 395 (+92)
github.com/rocket-pool/smartnode/rocketpool/api/upgrade/routes.go 7.69% (+7.69%) 78 (-414) 6 (+6) 72 (-420) 👍
github.com/rocket-pool/smartnode/rocketpool/api/version.go 2.53% (+2.53%) 79 (+9) 2 (+2) 77 (+7) 👍
github.com/rocket-pool/smartnode/rocketpool/api/wait.go 0.84% (+0.84%) 239 (+27) 2 (+2) 237 (+25) 👍
github.com/rocket-pool/smartnode/rocketpool/api/wallet/end-masquerade.go 0.00% (ø) 248 (+74) 0 248 (+74)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/ens-name.go 0.00% (ø) 1342 (+607) 0 1342 (+607)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/export.go 0.00% (ø) 610 (+117) 0 610 (+117)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/init.go 0.00% (ø) 618 (+184) 0 618 (+184)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/masquerade.go 0.00% (ø) 642 (+168) 0 642 (+168)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/rebuild.go 0.00% (ø) 656 (+144) 0 656 (+144)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/recover.go 0.00% (ø) 5536 (+954) 0 5536 (+954)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/recovery-lock.go 7.90% (-1.32%) 937 (+134) 74 863 (+134) 👎
github.com/rocket-pool/smartnode/rocketpool/api/wallet/routes.go 8.00% (+8.00%) 350 (-1376) 28 (+28) 322 (-1404) 👍
github.com/rocket-pool/smartnode/rocketpool/api/wallet/set-password.go 0.00% (ø) 296 (+103) 0 296 (+103)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/status.go 0.00% (ø) 720 (+131) 0 720 (+131)
github.com/rocket-pool/smartnode/rocketpool/api/wallet/test.go 0.00% (ø) 2489 (+590) 0 2489 (+590)
github.com/rocket-pool/smartnode/rocketpool/node/http.go 3.24% (+3.24%) 1729 (+1159) 56 (+56) 1673 (+1103) 👍
github.com/rocket-pool/smartnode/rocketpool/node/routes/routes.go 7.67% (+7.67%) 443 (-9) 34 (+34) 409 (-43) 👍
github.com/rocket-pool/smartnode/shared/services/apitoken/file.go 5.29% (+5.29%) 2343 (+2343) 124 (+124) 2219 (+2219) 👍
github.com/rocket-pool/smartnode/shared/services/apitoken/token.go 10.34% (+10.34%) 812 (+812) 84 (+84) 728 (+728) 🎉
github.com/rocket-pool/smartnode/shared/services/config/api-config.go 2.05% (+2.05%) 1171 (+1171) 24 (+24) 1147 (+1147) 👍
github.com/rocket-pool/smartnode/shared/services/config/migration/v1210-manager.go 3.72% (+3.72%) 1101 (+453) 41 (+41) 1060 (+412) 👍
github.com/rocket-pool/smartnode/shared/services/config/rocket-pool-config.go 1.90% (+0.34%) 16983 (+2680) 323 (+99) 16660 (+2581) 👍
github.com/rocket-pool/smartnode/shared/services/config/smartnode-config.go 0.84% (+0.06%) 2604 (+312) 22 (+4) 2582 (+308) 👍
github.com/rocket-pool/smartnode/shared/services/rocketpool/client.go 0.00% (ø) 17692 (+2519) 0 17692 (+2519)
github.com/rocket-pool/smartnode/shared/services/services.go 0.00% (ø) 4423 (+113) 0 4423 (+113)
github.com/rocket-pool/smartnode/shared/types/config/parameter.go 3.29% (+0.79%) 1733 (+291) 57 (+21) 1676 (+270) 👍
github.com/rocket-pool/smartnode/shared/types/config/port-modes.go 10.10% (+5.77%) 287 (+10) 29 (+17) 258 (-7) 👍
github.com/rocket-pool/smartnode/shared/types/config/types.go 19.23% (+1.84%) 78 (+9) 15 (+3) 63 (+6) 👍

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/api/snroute/snroute_test.go
  • github.com/rocket-pool/smartnode/rocketpool/node/http_test.go
  • github.com/rocket-pool/smartnode/rocketpool/node/routes/routes_test.go
  • github.com/rocket-pool/smartnode/rocketpool/node/verify-pdao-props-state_test.go
  • github.com/rocket-pool/smartnode/shared/services/apitoken/token_test.go
  • github.com/rocket-pool/smartnode/shared/services/config/api-config_test.go

@0xfornax
0xfornax merged commit f2dcadf into master Aug 25, 2026
6 checks 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.

2 participants