diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 1c6d25cdf28..aa547266f2c 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -618,7 +618,9 @@ static UniValue HardForkMajorityDesc(int minVersion, CBlockIndex* pindex, int nR // Always report blocks found as over the threshold once the fork is active nFound = nRequired + 1; gracePeriodEnds = static_cast(forkTime); - triggeredAtBlock = pblocktree->ForkBitActivated(FORK_BIT_2MB).GetHex(); + uint256 activationHash = pblocktree->ForkBitActivated(FORK_BIT_2MB); + assert(activationHash != uint256()); + triggeredAtBlock = activationHash.GetHex(); } else { for (int i = 0; i < consensusParams.nMajorityWindow && pstart != NULL; i++) {