dash/doc/release-notes-14468.md
MarcoFalke e4f621fd57
merge #14468: [wallet] Deprecate generate RPC method
ab9aca2bdf [rpc] add 'getnewaddress' hint to 'generatetoaddress' help text. (John Newbery)
c9f02955b2 [wallet] Deprecate the generate RPC method (John Newbery)
aab81720de [tests] Add generate method to TestNode (John Newbery)
c269209336 [tests] Small fixups before deprecating generate (John Newbery)

Pull request description:

  Deprecates the `generate` RPC method.

  For concept discussion, see #14299.

  Fixes #14299.

Tree-SHA512: 16a3b8b742932e4f0476c06b23de07a34d9d215b41d9272c1c9d1e39966b0c2406f17c5ab3cc568947620c08171ebe5eb74fd7ed4b62151363e305ee2937cc80
2022-05-01 20:51:43 +03:00

738 B

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.