Skip to content

Commit 193bc71

Browse files
author
barrystyle
committed
Ignore any 'unknown new rules' message if triggered by a bit within block algo version range
1 parent 8956704 commit 193bc71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/validation.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -2366,6 +2366,9 @@ void CChainState::UpdateTip(const CBlockIndex* pindexNew)
23662366
for (int bit = 0; bit < VERSIONBITS_NUM_BITS; bit++) {
23672367
WarningBitsConditionChecker checker(bit);
23682368
ThresholdState state = checker.GetStateFor(pindex, m_params.GetConsensus(), warningcache[bit]);
2369+
// dont trigger 'unknown new rules' warning if the bit falls within
2370+
// the block algo version range (enum in primitives/block.h)
2371+
if (bit <= BLOCK_VERSION_ALGO) continue;
23692372
if (state == ThresholdState::ACTIVE || state == ThresholdState::LOCKED_IN) {
23702373
const bilingual_str warning = strprintf(_("Unknown new rules activated (versionbit %i)"), bit);
23712374
if (state == ThresholdState::ACTIVE) {

0 commit comments

Comments
 (0)