diff options
| author | Luke Dashjr <[email protected]> | 2012-07-11 18:52:41 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2014-06-26 11:49:46 +0000 |
| commit | 2a72d4591f5adf25fcb4d0433b390ba6c37f57a9 (patch) | |
| tree | b46f8cc4f0529ca6d1faebdb5690ba3353044fc1 /src/rpcmining.cpp | |
| parent | Merge pull request #4368 (diff) | |
| download | discoin-2a72d4591f5adf25fcb4d0433b390ba6c37f57a9.tar.xz discoin-2a72d4591f5adf25fcb4d0433b390ba6c37f57a9.zip | |
JSON-RPC method: prioritisetransaction <txid> <priority delta> <priority tx fee>
Accepts the transaction into mined blocks at a higher (or lower) priority
Diffstat (limited to 'src/rpcmining.cpp')
| -rw-r--r-- | src/rpcmining.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 0072557f8..98caf704e 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -247,6 +247,20 @@ Value getmininginfo(const Array& params, bool fHelp) } +Value prioritisetransaction(const Array& params, bool fHelp) +{ + if (fHelp || params.size() != 3) + throw runtime_error( + "prioritisetransaction <txid> <priority delta> <fee delta>\n" + "Accepts the transaction into mined blocks at a higher (or lower) priority"); + + uint256 hash; + hash.SetHex(params[0].get_str()); + mempool.PrioritiseTransaction(hash, params[0].get_str(), params[1].get_real(), params[2].get_int64()); + return true; +} + + Value getblocktemplate(const Array& params, bool fHelp) { if (fHelp || params.size() > 1) |