From 6a2b1cce6da438f9690c516cc6023799105c88fe Mon Sep 17 00:00:00 2001 From: MD Islam Date: Tue, 25 May 2021 18:23:36 -0400 Subject: 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 --- src/rpc/client.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rpc/client.cpp') 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" }, -- cgit v1.2.3