diff options
author | Prayank <prayank@tutanota.de> | 2021-05-30 20:56:49 +0530 |
---|---|---|
committer | Prayank <prayank@tutanota.de> | 2021-06-07 20:19:18 +0530 |
commit | 6d7e46ce23217da53ff52f535879c393c02fa2b2 (patch) | |
tree | 8704b0952a702802e18133206a27404c2f5911f2 | |
parent | 55a156fca08713b020aafef91f40df8ce4bc3cae (diff) |
Remove `Warning:`
+ Remove `Warning:` from warning message printed for unknown new rules
+ Change warning message in test
Author: Prayank <prayank@tutanota.de>
-rw-r--r-- | src/validation.cpp | 2 | ||||
-rwxr-xr-x | test/functional/feature_versionbits_warning.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 86539ab01f..89ab46a0a6 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2333,7 +2333,7 @@ static void UpdateTip(CTxMemPool& mempool, const CBlockIndex* pindexNew, const C WarningBitsConditionChecker checker(bit); ThresholdState state = checker.GetStateFor(pindex, chainParams.GetConsensus(), warningcache[bit]); if (state == ThresholdState::ACTIVE || state == ThresholdState::LOCKED_IN) { - const bilingual_str warning = strprintf(_("Warning: unknown new rules activated (versionbit %i)"), bit); + const bilingual_str warning = strprintf(_("Unknown new rules activated (versionbit %i)"), bit); if (state == ThresholdState::ACTIVE) { DoWarning(warning); } else { diff --git a/test/functional/feature_versionbits_warning.py b/test/functional/feature_versionbits_warning.py index 062a7affb5..1c9e237d78 100755 --- a/test/functional/feature_versionbits_warning.py +++ b/test/functional/feature_versionbits_warning.py @@ -21,8 +21,8 @@ VB_TOP_BITS = 0x20000000 VB_UNKNOWN_BIT = 27 # Choose a bit unassigned to any deployment VB_UNKNOWN_VERSION = VB_TOP_BITS | (1 << VB_UNKNOWN_BIT) -WARN_UNKNOWN_RULES_ACTIVE = "unknown new rules activated (versionbit {})".format(VB_UNKNOWN_BIT) -VB_PATTERN = re.compile("Warning: unknown new rules activated.*versionbit") +WARN_UNKNOWN_RULES_ACTIVE = "Unknown new rules activated (versionbit {})".format(VB_UNKNOWN_BIT) +VB_PATTERN = re.compile("Unknown new rules activated.*versionbit") class VersionBitsWarningTest(BitcoinTestFramework): def set_test_params(self): |