aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/client.cpp
diff options
context:
space:
mode:
authorMD Islam <[email protected]>2021-05-25 18:23:36 -0400
committerMD Islam <[email protected]>2021-05-25 18:23:36 -0400
commit6a2b1cce6da438f9690c516cc6023799105c88fe (patch)
tree8dca818d99aa0539064708aa8f7ea11215db6a2b /src/rpc/client.cpp
parentMerge pull request #1916 from hashtagcyber/master (diff)
downloaddiscoin-6a2b1cce6da438f9690c516cc6023799105c88fe.tar.xz
discoin-6a2b1cce6da438f9690c516cc6023799105c88fe.zip
Add functionality to generate auxpow blocks in regtest
This roughly reverts the work done here that disabled auxpow generation in regtest: https://github.com/dogecoin/dogecoin/pull/1431/files\#diff-ccc24453c13307f815879738d3bf00eec351417537fbf10dde1468180cacd2f1R127-R137 This is a pretty severe functionality change since auxpow is critical to Dogecoin and wallet integrators need to be able to parse the extra data in auxpow blocks. For future wallet integrators: Dogecoin follows similar schemes as Namecoin for the merged mining support and the spec is here: https://en.bitcoin.it/wiki/Merged_mining_specification pr review: GetHash -> GetPoWHash
Diffstat (limited to 'src/rpc/client.cpp')
-rw-r--r--src/rpc/client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp
index 0ad6c3ef2..9f0e0f1d2 100644
--- a/src/rpc/client.cpp
+++ b/src/rpc/client.cpp
@@ -34,8 +34,10 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "setmocktime", 0, "timestamp" },
{ "generate", 0, "nblocks" },
{ "generate", 1, "maxtries" },
+ { "generate", 2, "auxpow" },
{ "generatetoaddress", 0, "nblocks" },
{ "generatetoaddress", 2, "maxtries" },
+ { "generatetoaddress", 3, "auxpow" },
{ "getnetworkhashps", 0, "nblocks" },
{ "getnetworkhashps", 1, "height" },
{ "sendtoaddress", 1, "amount" },