Skip to content

Commit

Permalink
fix: add missing minter info to verbose 3+ outputs (#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl authored Jun 10, 2024
1 parent 1b691c6 commit 49ec31a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 49ec31a

Please sign in to comment.