mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge pull request #5499
7f71813 Bugfix: prioritisetransaction: Do some basic sanity checking on txid (Luke Dashjr)
This commit is contained in:
commit
a5eb61d9ef
3 changed files with 7 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue