Skip to content

Commit 8d844c7

Browse files
author
Andrea Bonel
committed
Fix dynamic_parameters root in getblockheader rpc
1 parent 6b826d5 commit 8d844c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rpc/blockchain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,17 @@ UniValue paramEntryToJSON(const DynaFedParamEntry& entry)
154154
}
155155

156156
// fields all params have
157-
result.pushKV("root", HexStr(entry.CalculateRoot()));
157+
result.pushKV("root", entry.CalculateRoot().GetHex());
158158
result.pushKV("signblockscript", HexStr(entry.m_signblockscript));
159159
result.pushKV("max_block_witness", (uint64_t)entry.m_signblock_witness_limit);
160160

161161
// add the extra root which is stored for compact and calculated for full
162162
if (entry.m_serialize_type == 1) {
163163
// compact
164-
result.pushKV("extra_root", HexStr(entry.m_elided_root));
164+
result.pushKV("extra_root", entry.m_elided_root.GetHex());
165165
} else if (entry.m_serialize_type == 2) {
166166
// full
167-
result.pushKV("extra_root", HexStr(entry.CalculateExtraRoot()));
167+
result.pushKV("extra_root", entry.CalculateExtraRoot().GetHex());
168168
}
169169

170170
// some extra fields only present on full params

0 commit comments

Comments
 (0)