aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2016-02-11 15:34:04 -0500
committerAlex Morcos <morcos@chaincode.com>2016-02-11 15:34:04 -0500
commitb043c4b746c8199ce948aa5e8b186e0d1a61ad68 (patch)
tree4fdcc4c38f5bafb50f9ad9921aac0edc0e2ed8a3 /src/main.cpp
parenta51c79be6b8ef060697287dce3195876069899bd (diff)
downloadbitcoin-b043c4b746c8199ce948aa5e8b186e0d1a61ad68.tar.xz
fix sdaftuar's nits again
it boggles the mind why these nits can't be delivered on a more timely basis
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d9bf3bd757..7d75e2ea65 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -799,10 +799,10 @@ bool CheckSequenceLocks(const CTransaction &tx, int flags)
index.pprev = tip;
// CheckSequenceLocks() uses chainActive.Height()+1 to evaluate
// height based locks because when SequenceLocks() is called within
- // CBlock::AcceptBlock(), the height of the block *being*
- // evaluated is what is used. Thus if we want to know if a
- // transaction can be part of the *next* block, we need to call
- // SequenceLocks() with one more than chainActive.Height().
+ // ConnectBlock(), the height of the block *being*
+ // evaluated is what is used.
+ // Thus if we want to know if a transaction can be part of the
+ // *next* block, we need to use one more than chainActive.Height()
index.nHeight = tip->nHeight + 1;
// pcoinsTip contains the UTXO set for chainActive.Tip()
@@ -2240,7 +2240,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
}
if (!SequenceLocks(tx, nLockTimeFlags, &prevheights, *pindex)) {
- return state.DoS(100, error("ConnectBlock(): contains a non-BIP68-final transaction", __func__),
+ return state.DoS(100, error("%s: contains a non-BIP68-final transaction", __func__),
REJECT_INVALID, "bad-txns-nonfinal");
}