37@@ -38,6 +38,12 @@ static const int MAX_STACK_SIZE = 1000;
38 // otherwise as UNIX timestamp.
39 static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC
40
41+// Maximum nLockTime. Since a lock time indicates the last invalid timestamp, a
42+// transaction with this lock time will never be valid unless lock time
43+// checking is disabled (by setting all input sequence numbers to
44+// SEQUENCE_FINAL).
45+static const uint32_t LOCKTIME_MAX = 0xffffffff;
0xFFFFFFFFU ? lest we immediately get another hysterically titled “prevent integer overflow” PR?
@gmaxwell Why would an
U
suffix be needed in this case?
0xffffffff
is unsigned on all platforms we support, right?