Skip to content

Commit ef30389

Browse files
committed
Merge pull request #6544
c5c1edf Fix spelling mistake in -> if. (Mark Friedenbach) e846b2a Correct a possibly intentional pun that is nevertheless hard to read: "two times of nLockTime." What is meant is that there are two kinds, or categories of nLockTime. (Mark Friedenbach)
2 parents 80cddbb + c5c1edf commit ef30389

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/script/interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ bool TransactionSignatureChecker::CheckSig(const vector<unsigned char>& vchSigIn
11281128

11291129
bool TransactionSignatureChecker::CheckLockTime(const CScriptNum& nLockTime) const
11301130
{
1131-
// There are two times of nLockTime: lock-by-blockheight
1131+
// There are two kinds of nLockTime: lock-by-blockheight
11321132
// and lock-by-blocktime, distinguished by whether
11331133
// nLockTime < LOCKTIME_THRESHOLD.
11341134
//

src/test/data/tx_invalid.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "2147483648 NOP2 1"]],
182182
"0100000001000100000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000ffffff7f", "P2SH,CHECKLOCKTIMEVERIFY"],
183183

184-
["6 byte non-minimally-encoded arguments are invalid even in their contents are valid"],
184+
["6 byte non-minimally-encoded arguments are invalid even if their contents are valid"],
185185
[[["0000000000000000000000000000000000000000000000000000000000000100", 0, "0x06 0x000000000000 NOP2 1"]],
186186
"010000000100010000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000", "P2SH,CHECKLOCKTIMEVERIFY"],
187187

0 commit comments

Comments
 (0)