diff options
author | Andrew C <achow101@gmail.com> | 2016-03-12 11:41:51 -0500 |
---|---|---|
committer | Andrew C <achow101@gmail.com> | 2016-03-21 09:58:40 -0400 |
commit | fe00ca758a0f1ab2db3f7441c04780630a9df11a (patch) | |
tree | 5cf334f3c99ddbb767b93aed4ee1f2ecd5ba73e4 /src/rpc/server.cpp | |
parent | 29b2be6ad7898fcb871f6febbd45d0c7940398cd (diff) |
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/server.cpp')
-rw-r--r-- | src/rpc/server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 33fa1437e2..1303a3bb13 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -299,6 +299,7 @@ static const CRPCCommand vRPCCommands[] = /* Coin generation */ { "generating", "generate", &generate, true }, + { "generating", "generatetoaddress", &generatetoaddress, true }, /* Raw transactions */ { "rawtransactions", "createrawtransaction", &createrawtransaction, true }, |