diff options
| author | Andrew C <[email protected]> | 2016-03-12 11:41:51 -0500 |
|---|---|---|
| committer | Andrew C <[email protected]> | 2016-03-21 09:58:40 -0400 |
| commit | fe00ca758a0f1ab2db3f7441c04780630a9df11a (patch) | |
| tree | 5cf334f3c99ddbb767b93aed4ee1f2ecd5ba73e4 /src/rpc/client.cpp | |
| parent | Merge #7692: Remove p2p alert system (diff) | |
| download | discoin-fe00ca758a0f1ab2db3f7441c04780630a9df11a.tar.xz discoin-fe00ca758a0f1ab2db3f7441c04780630a9df11a.zip | |
Create generatetoaddress rpc
Creates the generatetoaddress rpc which is virtually identical to the generate rpc except that it takes an argument for the address to mine to. It does not rely on wallet functionality.
The mining code shared by generate and generatetoaddress has been moved to another method to reduce duplication.
Diffstat (limited to 'src/rpc/client.cpp')
| -rw-r--r-- | src/rpc/client.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 45fb6c164..89420b93d 100644 --- a/src/rpc/client.cpp +++ b/src/rpc/client.cpp @@ -29,6 +29,9 @@ static const CRPCConvertParam vRPCConvertParams[] = { "getaddednodeinfo", 0 }, { "generate", 0 }, { "generate", 1 }, + { "generatetoaddress", 0 }, + { "generatetoaddress", 1 }, + { "generatetoaddress", 2 }, { "getnetworkhashps", 0 }, { "getnetworkhashps", 1 }, { "sendtoaddress", 1 }, |