chaincfg: fix deployment bit numbers
On signet all previous soft forks and also taproot are always activated, meaning the version is always 0x20000000 for all blocks. To make sure they activate properly in `btcd` we therefore need to use the correct bit to mask the version. This means that on any custom signet there would need to be 2016 blocks mined before SegWit or Taproot can be used.
This commit is contained in:
parent
0ec4bdc1b8
commit
7b6c2b3423
1 changed files with 3 additions and 3 deletions
|
@ -670,17 +670,17 @@ func CustomSignetParams(challenge []byte, dnsSeeds []DNSSeed) Params {
|
||||||
ExpireTime: 1230767999, // December 31, 2008 UTC
|
ExpireTime: 1230767999, // December 31, 2008 UTC
|
||||||
},
|
},
|
||||||
DeploymentCSV: {
|
DeploymentCSV: {
|
||||||
BitNumber: 0,
|
BitNumber: 29,
|
||||||
StartTime: 0, // Always available for vote
|
StartTime: 0, // Always available for vote
|
||||||
ExpireTime: math.MaxInt64, // Never expires
|
ExpireTime: math.MaxInt64, // Never expires
|
||||||
},
|
},
|
||||||
DeploymentSegwit: {
|
DeploymentSegwit: {
|
||||||
BitNumber: 1,
|
BitNumber: 29,
|
||||||
StartTime: 0, // Always available for vote
|
StartTime: 0, // Always available for vote
|
||||||
ExpireTime: math.MaxInt64, // Never expires.
|
ExpireTime: math.MaxInt64, // Never expires.
|
||||||
},
|
},
|
||||||
DeploymentTaproot: {
|
DeploymentTaproot: {
|
||||||
BitNumber: 2,
|
BitNumber: 29,
|
||||||
StartTime: 0, // Always available for vote
|
StartTime: 0, // Always available for vote
|
||||||
ExpireTime: math.MaxInt64, // Never expires.
|
ExpireTime: math.MaxInt64, // Never expires.
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue