From 8ad8cad875842ee9f63eb43216eb7eb7ac02de4d Mon Sep 17 00:00:00 2001 From: BtcDrak Date: Sat, 21 Nov 2015 10:52:11 +0000 Subject: Rename flags in code example to match implementation --- bip-0068.mediawiki | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bip-0068.mediawiki') 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(); -- cgit v1.2.3