diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 1fa90c75d3..c7119ce3cb 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -33,6 +33,8 @@ static const CRPCConvertParam vRPCConvertParams[] = { "generate", 1, "maxtries" }, { "generatetoaddress", 0, "nblocks" }, { "generatetoaddress", 2, "maxtries" }, + { "generatetodescriptor", 0, "num_blocks" }, + { "generatetodescriptor", 2, "maxtries" }, #endif // ENABLE_MINER { "getnetworkhashps", 0, "nblocks" }, { "getnetworkhashps", 1, "height" }, diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 1342d82dd2..5bc9261e56 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -21,6 +21,8 @@ #include #include #include +#include