From 0759c14080fd631cfa0fcd2e7f8b2ec190eb4dfb Mon Sep 17 00:00:00 2001 From: Niven Date: Thu, 24 Aug 2023 12:01:24 +0800 Subject: [PATCH] Fix dvm genesis block minter info --- src/rpc/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index a613954eb9..f767f71a6e 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -131,7 +131,7 @@ struct MinterInfo { CKeyID minter; block.ExtractMinterKey(minter); auto id = view.GetMasternodeIdByOperator(minter); - if (!id) return {}; + if (!id && blockindex->nHeight != 0) return {}; result.Id = id->ToString(); auto mn = view.GetMasternode(*id); if (mn) {