mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
scripted-diff: rename gbt_force and gbt_force_name
The term "force" is ambiguous and not used in BIP9 where the ! rule prefix is introduced. Additionally, #29039 renamed gbt_vb_name to gbt_force_name which might increase the confusion. -BEGIN VERIFY SCRIPT- sed -i s/gbt_force_name/gbt_rule_value/g ./src/rpc/mining.cpp sed -i s/gbt_force/gbt_optional_rule/g $(git grep -l gbt_force) -END VERIFY SCRIPT-
This commit is contained in:
@@ -235,7 +235,7 @@ BIP9GBTStatus VersionBitsCache::GBTStatus(const CBlockIndex& block_index, const
|
||||
VersionBitsConditionChecker checker(params, pos);
|
||||
ThresholdState state = checker.GetStateFor(&block_index, m_caches[pos]);
|
||||
const VBDeploymentInfo& vbdepinfo = VersionBitsDeploymentInfo[pos];
|
||||
BIP9GBTStatus::Info gbtinfo{.bit=params.vDeployments[pos].bit, .mask=checker.Mask(), .gbt_force=vbdepinfo.gbt_force};
|
||||
BIP9GBTStatus::Info gbtinfo{.bit=params.vDeployments[pos].bit, .mask=checker.Mask(), .gbt_optional_rule=vbdepinfo.gbt_optional_rule};
|
||||
|
||||
switch (state) {
|
||||
case DEFINED:
|
||||
|
||||
Reference in New Issue
Block a user