mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
getblockheader: properly display 'signblock_witness_hex' field and remove irrelevant 'signblock_witness_asm' field in post-dynafed RPC response
This commit is contained in:
parent
cf2eb09bc5
commit
79f5a000a8
3 changed files with 16 additions and 3 deletions
|
|
@ -164,6 +164,15 @@ std::string EncodeHexTx(const CTransaction& tx, const int serializeFlags)
|
|||
return HexStr(ssTx);
|
||||
}
|
||||
|
||||
UniValue EncodeHexScriptWitness(const CScriptWitness& witness)
|
||||
{
|
||||
UniValue witness_hex(UniValue::VARR);
|
||||
for (const auto &item : witness.stack) {
|
||||
witness_hex.push_back(HexStr(item));
|
||||
}
|
||||
return witness_hex;
|
||||
}
|
||||
|
||||
void ScriptToUniv(const CScript& script, UniValue& out, bool include_address)
|
||||
{
|
||||
out.pushKV("asm", ScriptToAsmStr(script));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue