diff --git a/doc/release-notes-14468.md b/doc/release-notes-14468.md deleted file mode 100644 --- a/doc/release-notes-14468.md +++ /dev/null @@ -1,15 +0,0 @@ -Wallet `generate` RPC method deprecated ---------------------------------------- - -The wallet's `generate` RPC method has been deprecated and will be fully -removed in v0.19. - -`generate` is only used for testing. The RPC call reaches across multiple -subsystems (wallet and mining), so is deprecated to simplify the wallet-node -interface. Projects that are using `generate` for testing purposes should -transition to using the `generatetoaddress` call, which does not require or use -the wallet component. Calling `generatetoaddress` with an address returned by -`getnewaddress` gives the same functionality as the old `generate` method. - -To continue using `generate` in v0.18, restart bitcoind with the -`-deprecatedrpc=generate` configuration. diff --git a/doc/release-notes/release-notes-0.21.5.md b/doc/release-notes/release-notes-0.21.5.md --- a/doc/release-notes/release-notes-0.21.5.md +++ b/doc/release-notes/release-notes-0.21.5.md @@ -34,3 +34,20 @@ - A new `bitcoin-wallet` tool is now available, distributed alongside our usual binaries. This tool provides a way to create new wallet files and inspect basic information about a wallet without using any RPCs. + +Wallet `generate` RPC method deprecated +--------------------------------------- + + - The wallet's `generate` RPC method has been deprecated and will be fully + removed in v0.22. + + - `generate` is only used for testing. The RPC call reaches across multiple + subsystems (wallet and mining), so is deprecated to simplify the + wallet-node interface. Projects that are using `generate` for testing + purposes should transition to using the `generatetoaddress` call, which + does not require or use the wallet component. Calling `generatetoaddress` + with an address returned by `getnewaddress` gives the same functionality as + the old `generate` method. + + - To continue using `generate` in v0.21, restart bitcoind with the + `-deprecatedrpc=generate` configuration. diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3906,8 +3906,8 @@ if (!IsDeprecatedRPCEnabled(gArgs, "generate")) { throw JSONRPCError(RPC_METHOD_DEPRECATED, "The wallet generate rpc method is deprecated and " - "will be fully removed in v0.19. " - "To use generate in v0.18, restart bitcoind with " + "will be fully removed in v0.22. " + "To use generate in v0.21, restart bitcoind with " "-deprecatedrpc=generate.\n" "Clients should transition to using the node rpc " "method generatetoaddress\n");