summaryrefslogtreecommitdiff
path: root/bip-0068.mediawiki
diff options
context:
space:
mode:
authorBtcDrak <btcdrak@gmail.com>2015-11-21 10:52:11 +0000
committerBtcDrak <btcdrak@gmail.com>2015-11-23 09:53:31 +0000
commit8ad8cad875842ee9f63eb43216eb7eb7ac02de4d (patch)
tree4aa0c6e3fe834a3b96f856b9de8053fc4a86b03a /bip-0068.mediawiki
parent83fc19d97aa72f1ac83acf799ce854f8eede9504 (diff)
downloadbips-8ad8cad875842ee9f63eb43216eb7eb7ac02de4d.tar.xz
Rename flags in code example to match implementation
Diffstat (limited to 'bip-0068.mediawiki')
-rw-r--r--bip-0068.mediawiki8
1 files changed, 4 insertions, 4 deletions
diff --git a/bip-0068.mediawiki b/bip-0068.mediawiki
index 414d074..a487392 100644
--- a/bip-0068.mediawiki
+++ b/bip-0068.mediawiki
@@ -62,12 +62,12 @@ This is proposed to be accomplished by replacing IsFinalTx() and CheckFinalTx(),
/* If this flag set, CTxIn::nSequence is NOT interpreted as a
* relative lock-time. Setting the most significant bit of a
* sequence number disabled relative lock-time. */
- static const uint32_t SEQUENCE_LOCKTIME_DISABLED_FLAG = (1 << 31);
+ static const uint32_t SEQUENCE_LOCKTIME_DISABLE_FLAG = (1 << 31);
/* If CTxIn::nSequence encodes a relative lock-time and this flag
* is set, the relative lock-time has units of 512 seconds,
* otherwise it specifies blocks with a granularity of 1. */
- static const uint32_t SEQUENCE_LOCKTIME_SECONDS_FLAG = (1 << 22);
+ static const uint32_t SEQUENCE_LOCKTIME_TYPE_FLAG = (1 << 22);
/* If CTxIn::nSequence encodes a relative lock-time, this mask is
* applied to extract that lock-time from the sequence field. */
@@ -117,7 +117,7 @@ This is proposed to be accomplished by replacing IsFinalTx() and CheckFinalTx(),
// Sequence numbers with the most significant bit set are not
// treated as relative lock-times, nor are they given any
// consensus-enforced meaning at this point.
- if (txin.nSequence & CTxIn::SEQUENCE_LOCKTIME_DISABLED_FLAG)
+ if (txin.nSequence & CTxIn::SEQUENCE_LOCKTIME_DISABLE_FLAG)
continue;
if (prevHeights == NULL)
@@ -125,7 +125,7 @@ This is proposed to be accomplished by replacing IsFinalTx() and CheckFinalTx(),
int nCoinHeight = (*prevHeights)[txinIndex];
- if (txin.nSequence & CTxIn::SEQUENCE_LOCKTIME_SECONDS_FLAG) {
+ if (txin.nSequence & CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG) {
int64_t nCoinTime = block.GetAncestor(std::max(nCoinHeight-1, 0))->GetMedianTimePast();