diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-12-31 10:47:52 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-12-31 10:50:06 +0100 |
| commit | a5eb61d9ef18c4add55ea8a1d813c5207ecf12f2 (patch) | |
| tree | 8010d86eba8b7180b05d49dfb39f47627bc7a23e /src/rpcmining.cpp | |
| parent | Merge pull request #5545 (diff) | |
| parent | Bugfix: prioritisetransaction: Do some basic sanity checking on txid (diff) | |
| download | discoin-a5eb61d9ef18c4add55ea8a1d813c5207ecf12f2.tar.xz discoin-a5eb61d9ef18c4add55ea8a1d813c5207ecf12f2.zip | |
Merge pull request #5499
7f71813 Bugfix: prioritisetransaction: Do some basic sanity checking on txid (Luke Dashjr)
Diffstat (limited to 'src/rpcmining.cpp')
| -rw-r--r-- | src/rpcmining.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 17552bc38..35760f9af 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -288,8 +288,7 @@ Value prioritisetransaction(const Array& params, bool fHelp) + HelpExampleRpc("prioritisetransaction", "\"txid\", 0.0, 10000") ); - uint256 hash; - hash.SetHex(params[0].get_str()); + uint256 hash = ParseHashStr(params[0].get_str(), "txid"); CAmount nAmount = params[2].get_int64(); |