Commit 193bc71 barrystyle
committed
1 parent 8956704 commit 193bc71 Copy full SHA for 193bc71
File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2366,6 +2366,9 @@ void CChainState::UpdateTip(const CBlockIndex* pindexNew)
2366
2366
for (int bit = 0 ; bit < VERSIONBITS_NUM_BITS; bit++) {
2367
2367
WarningBitsConditionChecker checker (bit);
2368
2368
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 ;
2369
2372
if (state == ThresholdState::ACTIVE || state == ThresholdState::LOCKED_IN) {
2370
2373
const bilingual_str warning = strprintf (_ (" Unknown new rules activated (versionbit %i)" ), bit);
2371
2374
if (state == ThresholdState::ACTIVE) {
You can’t perform that action at this time.
0 commit comments