Skip to content

Commit c23afab

Browse files
committed
Fix flags
1 parent fc227d0 commit c23afab

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Diff for: src/deploymentinfo.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ const struct VBDeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_B
2121
/*.name =*/ "covtools",
2222
/*.gbt_force =*/ true,
2323
},
24-
{
25-
/*.name =*/ "cat",
26-
/*.gbt_force =*/ true,
27-
},
2824
{
2925
/*.name =*/ "opcat",
3026
/*.gbt_force =*/ true,

Diff for: src/script/interpreter.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ enum : uint32_t {
180180
SCRIPT_VERIFY_INTERNALKEY = (1U << 31),
181181

182182
// Making OP_INTERNALKEY non-standard
183-
SCRIPT_VERIFY_DISCOURAGE_INTERNALKEY = (1U << 32),
183+
SCRIPT_VERIFY_DISCOURAGE_INTERNALKEY = (1U << 30),
184184

185185
// Validating OP_CHECKSIGFROMSTACK
186186
SCRIPT_VERIFY_CHECKSIGFROMSTACK = (1U << 31),
187187

188188
// Making OP_CHECKSIGFROMSTACK non-standard
189-
SCRIPT_VERIFY_DISCOURAGE_CHECKSIGFROMSTACK = (1U << 32),
189+
SCRIPT_VERIFY_DISCOURAGE_CHECKSIGFROMSTACK = (1U << 30),
190190

191191
// Constants to point to the highest flag in use. Add new flags above this line.
192192
//

Diff for: src/validation.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2245,12 +2245,12 @@ static unsigned int GetBlockScriptFlags(const CBlockIndex& block_index, const Ch
22452245
}
22462246

22472247
// Enforce CHECKSIGFROMSTACK(VERIFY) (BIN-2024-0003)
2248-
if (DeploymentActiveAt(block_index, chainman, Consensus::DEPLOYMENT_CHECKSIGFROMSTACK)) {
2248+
if (DeploymentActiveAt(block_index, chainman, Consensus::DEPLOYMENT_LN_HANCE)) {
22492249
flags |= SCRIPT_VERIFY_CHECKSIGFROMSTACK;
22502250
}
22512251

22522252
// Process INTERNALKEY (BIN-2024-0004)
2253-
if (DeploymentActiveAt(block_index, chainman, Consensus::DEPLOYMENT_INTERNALKEY)) {
2253+
if (DeploymentActiveAt(block_index, chainman, Consensus::DEPLOYMENT_LN_HANCE)) {
22542254
flags |= SCRIPT_VERIFY_INTERNALKEY;
22552255
}
22562256

0 commit comments

Comments
 (0)