diff --git a/API-CHANGELOG.md b/API-CHANGELOG.md index 0d5d8a8196..dd3fcd018b 100644 --- a/API-CHANGELOG.md +++ b/API-CHANGELOG.md @@ -83,9 +83,17 @@ The [commandline](https://xrpl.org/docs/references/http-websocket-apis/api-conve The `network_id` field was added in the `server_info` response in version 1.5.0 (2019), but it is not returned in [reporting mode](https://xrpl.org/rippled-server-modes.html#reporting-mode). However, use of reporting mode is now discouraged, in favor of using [Clio](https://github.com/XRPLF/clio) instead. +## XRP Ledger server version 2.5.0 + +As of 2025-04-04, version 2.5.0 is in development. You can use a pre-release version by building from source or [using the `nightly` package](https://xrpl.org/docs/infrastructure/installation/install-rippled-on-ubuntu). + +### Additions and bugfixes in 2.5.0 + +- `channel_authorize`: If `signing_support` is not enabled in the config, the RPC is disabled. + ## XRP Ledger server version 2.4.0 -As of 2025-01-28, version 2.4.0 is in development. You can use a pre-release version by building from source or [using the `nightly` package](https://xrpl.org/docs/infrastructure/installation/install-rippled-on-ubuntu). +[Version 2.4.0](https://github.com/XRPLF/rippled/releases/tag/2.4.0) was released on March 4, 2025. ### Additions and bugfixes in 2.4.0 diff --git a/src/xrpld/rpc/handlers/PayChanClaim.cpp b/src/xrpld/rpc/handlers/PayChanClaim.cpp index aaa559895c..b62f5e54e5 100644 --- a/src/xrpld/rpc/handlers/PayChanClaim.cpp +++ b/src/xrpld/rpc/handlers/PayChanClaim.cpp @@ -17,6 +17,7 @@ */ //============================================================================== +#include #include #include #include @@ -40,6 +41,12 @@ namespace ripple { Json::Value doChannelAuthorize(RPC::JsonContext& context) { + if (context.role != Role::ADMIN && !context.app.config().canSign()) + { + return RPC::make_error( + rpcNOT_SUPPORTED, "Signing is not supported by this server."); + } + auto const& params(context.params); for (auto const& p : {jss::channel_id, jss::amount}) if (!params.isMember(p))