mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 21:52:53 +02:00
Remove Taproot activation height
Drop DEPLOYMENT_TAPROOT from consensus.vDeployments.
Bump MinBIP9WarningHeight.
Clarify what is considered a BuriedDeployment and
drop taproot from getdeploymentinfo RPC.
Add a test to getblocktemplate to ensure the taproot
rule is still set.
Co-Authored-By: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
This commit is contained in:
@@ -947,8 +947,14 @@ static RPCHelpMan getblocktemplate()
|
||||
result.pushKV("capabilities", std::move(aCaps));
|
||||
|
||||
UniValue aRules(UniValue::VARR);
|
||||
// See getblocktemplate changes in BIP 9:
|
||||
// ! indicates a more subtle change to the block structure or generation transaction
|
||||
// Otherwise clients may assume the rule will not impact usage of the template as-is.
|
||||
aRules.push_back("csv");
|
||||
if (!fPreSegWit) aRules.push_back("!segwit");
|
||||
if (!fPreSegWit) {
|
||||
aRules.push_back("!segwit");
|
||||
aRules.push_back("taproot");
|
||||
}
|
||||
if (consensusParams.signet_blocks) {
|
||||
// indicate to miner that they must understand signet rules
|
||||
// when attempting to mine with this template
|
||||
|
||||
Reference in New Issue
Block a user