Skip to content

Commit 433a5cf

Browse files
committed
Merge f3e8ef2 into merged_master (Elements PR #799)
2 parents e3118ef + f3e8ef2 commit 433a5cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpc/blockchain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
13091309
" \"chainwork\": \"xxxx\" (string) total amount of work in active chain, in hexadecimal\n"
13101310
" \"size_on_disk\": xxxxxx, (numeric) the estimated size of the block and undo files on disk\n"
13111311
" \"pruned\": xx, (boolean) if the blocks are subject to pruning\n"
1312+
" \"current_params_root\": \"xxxx\", (string) the root of the currently active dynafed params in hex\n"
13121313
" \"signblock_asm\" : \"xxxx\", (string) ASM of sign block challenge data from genesis block.\n"
13131314
" \"signblock_hex\" : \"xxxx\", (string) Hex of sign block challenge data from genesis block.\n"
13141315
" \"current_signblock_asm\" : \"xxxx\", (string) ASM of sign block challenge data enforced on the next block.\n"
@@ -1387,6 +1388,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
13871388
obj.pushKV("extension_space", arr);
13881389
} else {
13891390
const DynaFedParamEntry entry = ComputeNextBlockFullCurrentParameters(::ChainActive().Tip(), chainparams.GetConsensus());
1391+
obj.pushKV("current_params_root", entry.CalculateRoot().GetHex());
13901392
obj.pushKV("current_signblock_asm", ScriptToAsmStr(entry.m_signblockscript));
13911393
obj.pushKV("current_signblock_hex", HexStr(entry.m_signblockscript));
13921394
obj.pushKV("max_block_witness", (uint64_t)entry.m_signblock_witness_limit);

0 commit comments

Comments
 (0)