From 218360bb7120bc0ffdeefc9bdfd878530fb82b1f Mon Sep 17 00:00:00 2001 From: Thomas Trevethan Date: Mon, 10 Mar 2025 14:39:32 +0000 Subject: [PATCH] fix prefix --- src/core_write.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core_write.cpp b/src/core_write.cpp index 2192b41c9b..b235a05859 100644 --- a/src/core_write.cpp +++ b/src/core_write.cpp @@ -192,11 +192,11 @@ static void SidechainScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& o const std::string prefix = is_parent_chain ? "pegout_" : ""; CTxDestination address; - out.pushKV("asm", ScriptToAsmStr(scriptPubKey)); + out.pushKV(prefix + "asm", ScriptToAsmStr(scriptPubKey)); if (include_addresses) { - out.pushKV("desc", InferDescriptor(scriptPubKey, DUMMY_SIGNING_PROVIDER)->ToString()); + out.pushKV(prefix + "desc", InferDescriptor(scriptPubKey, DUMMY_SIGNING_PROVIDER)->ToString()); } - if (include_hex) out.pushKV("hex", HexStr(scriptPubKey)); + if (include_hex) out.pushKV(prefix + "hex", HexStr(scriptPubKey)); std::vector> solns; const TxoutType type{Solver(scriptPubKey, solns)};