Deprecating Bitcoin Core's regtest-specific `setgenerate` behaviour



Summary:

Pieter Wuille, a developer at Bitcoin Core has announced the deprecation of the `setgenerate` RPC call's special meaning for -regtest. Instead, it will be replaced with a separate RPC call `generate`. Pieter is asking if there are any software or users who would need compatibility with the old behavior. The bitcoin.org developer documentation will need to be updated. Sean, who is a Java RPC client and Groovy/Spock functional tests writer opines that a separate `generate` or `generateblocks` call is a great idea. However, keeping tests compatible with the current stable and unstable versions of Bitcoin Core (and the Omni Core fork) would require writing code that checks the RPC server version.


Updated on: 2023-06-09T19:08:36.039197+00:00