script_verify_flags

Type-safe set of script verification flags backed by a bitmask.

Synopsis

Declared in <script/verify_flags.h>

class script_verify_flags;

Type Aliases

NameDescription
value_type Underlying integer type holding the flag bits.

Member Functions

NameDescription
script_verify_flags [constructor]Constructors
~script_verify_flags [destructor]Destructor.
operator= Assignment operators
as_int Get the raw integer bitmask.
operator&= Clear all bits not present in another flag set in place.
operator|= Set the bits of another flag set in place.
operator~ Bitwise complement of the flag set.
operator bool Test whether any flag is set.
operator== Test two flag sets for equality.

Static Member Functions

NameDescription
from_int Build a flag set from a raw integer bitmask.

Friends

NameDescription
operator<=>Compare two script_verify_flags. <, >, <=, and >= are auto-generated from this.
operator&Bitwise AND of two flag sets.
operator|Bitwise OR of two flag sets.

Non-Member Functions

NameDescription
GetBlockScriptFlagsReturn the script flags which should be checked for a given block.
GetScriptFlagNamesList the human-readable names of the set verification flags.
operator|Bitwise OR of two flag names.
operator~Bitwise complement of a single flag name.