Changeset View
Changeset View
Standalone View
Standalone View
src/script/script_flags.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | enum { | ||||
// Are Schnorr signatures enabled for OP_CHECK(DATA)SIG(VERIFY) and | // Are Schnorr signatures enabled for OP_CHECK(DATA)SIG(VERIFY) and | ||||
// 65-byte signatures banned for OP_CHECKMULTISIG(VERIFY)? | // 65-byte signatures banned for OP_CHECKMULTISIG(VERIFY)? | ||||
// | // | ||||
SCRIPT_ENABLE_SCHNORR = (1U << 19), | SCRIPT_ENABLE_SCHNORR = (1U << 19), | ||||
// The exception to CLEANSTACK and P2SH for the recovery of coins sent | // The exception to CLEANSTACK and P2SH for the recovery of coins sent | ||||
// to p2sh segwit addresses is not allowed. | // to p2sh segwit addresses is not allowed. | ||||
SCRIPT_DISALLOW_SEGWIT_RECOVERY = (1U << 20), | SCRIPT_DISALLOW_SEGWIT_RECOVERY = (1U << 20), | ||||
// In the scriptSig, using a non-push opcode or a push operation that is | |||||
// non-minimal causes script failure. | |||||
SCRIPT_VERIFY_SCRIPTSIGMINPUSHONLY = (1U << 21), | |||||
Mengerian: This is just a matter of taste, but I'd add an underscore to call it… | |||||
}; | }; | ||||
#endif // BITCOIN_SCRIPT_SCRIPTFLAGS_H | #endif // BITCOIN_SCRIPT_SCRIPTFLAGS_H |
This is just a matter of taste, but I'd add an underscore to call it "SCRIPT_VERIFY_SCRIPTSIG_MINPUSHONLY".
It just seems slightly more readable that way to me.