mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge b75f2ad72d into merged_master (Bitcoin PR #19660)
This commit is contained in:
commit
419fd4f90d
17 changed files with 53 additions and 73 deletions
|
|
@ -76,13 +76,14 @@ std::string FormatScript(const CScript& script)
|
|||
}
|
||||
}
|
||||
if (vch.size() > 0) {
|
||||
ret += strprintf("0x%x 0x%x ", HexStr(it2, it - vch.size()), HexStr(it - vch.size(), it));
|
||||
ret += strprintf("0x%x 0x%x ", HexStr(std::vector<uint8_t>(it2, it - vch.size())),
|
||||
HexStr(std::vector<uint8_t>(it - vch.size(), it)));
|
||||
} else {
|
||||
ret += strprintf("0x%x ", HexStr(it2, it));
|
||||
ret += strprintf("0x%x ", HexStr(std::vector<uint8_t>(it2, it)));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
ret += strprintf("0x%x ", HexStr(it2, script.end()));
|
||||
ret += strprintf("0x%x ", HexStr(std::vector<uint8_t>(it2, script.end())));
|
||||
break;
|
||||
}
|
||||
return ret.substr(0, ret.size() - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue