Add SEQUENCE_THRESHOLD to script/script.h

Will now be needed by CHECKSEQUENCEVERIFY code.
This commit is contained in:
Mark Friedenbach 2015-06-01 17:52:34 -07:00
parent 753cfb66b9
commit 9d0c08e3bf

View file

@ -23,6 +23,10 @@ static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes
// otherwise as UNIX timestamp.
static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC
// Threshold for inverted CTxIn::nSequence: below this value it is interpreted
// as a relative lock-time, otherwise ignored.
static const uint32_t SEQUENCE_THRESHOLD = (1 << 31);
template <typename T>
std::vector<unsigned char> ToByteVector(const T& in)
{