From a3f9482f5f4bfeccd41256174033a2e33523ea89 Mon Sep 17 00:00:00 2001 From: Prasanna Loganathar Date: Fri, 7 Jun 2024 02:11:46 +0800 Subject: [PATCH] fix: add missing minter info to verbose 3+ outputs --- src/rpc/blockchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index d3b3183895..448d9d0fcc 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -405,7 +405,8 @@ UniValue blockToJSON(const CBlock& block, const CBlockIndex* tip, const CBlockIn result.pushKV("nextblockhash", pnext->GetBlockHash().GetHex()); if (v3plus) { - MinterInfo::From(block, blockindex, *pcustomcsview).ToUniValue(); + auto minterInfo = MinterInfo::From(block, blockindex, *pcustomcsview); + result.pushKV("minter", minterInfo.ToUniValue()); auto rewardInfo = RewardInfo::TryFrom(block, blockindex, consensus); if (rewardInfo) { result.pushKV("rewards", rewardInfo->ToUniValue());