mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 14959753a4 into merged_master (Bitcoin PR #15744)
This commit is contained in:
commit
3fd900ce76
7 changed files with 48 additions and 23 deletions
|
|
@ -2311,8 +2311,7 @@ UniValue scantxoutset(const JSONRPCRequest& request)
|
|||
desc_str = desc_uni.get_str();
|
||||
UniValue range_uni = find_value(scanobject, "range");
|
||||
if (!range_uni.isNull()) {
|
||||
range = ParseRange(range_uni);
|
||||
if (range.first < 0 || (range.second >> 31) != 0 || range.second >= range.first + 1000000) throw JSONRPCError(RPC_INVALID_PARAMETER, "range out of range");
|
||||
range = ParseDescriptorRange(range_uni);
|
||||
}
|
||||
} else {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Scan object needs to be either a string or an object");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue