Skip to content

Commit a381076

Browse files
committed
Code style fix.
This if statement is a little obtuse and using braces here improves readability.
1 parent c3c3752 commit a381076

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/script/interpreter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,8 +1227,9 @@ bool TransactionSignatureChecker::CheckSequence(const CScriptNum& nSequence) con
12271227
if (!(
12281228
(txToSequenceMasked < CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG && nSequenceMasked < CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG) ||
12291229
(txToSequenceMasked >= CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG && nSequenceMasked >= CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG)
1230-
))
1230+
)) {
12311231
return false;
1232+
}
12321233

12331234
// Now that we know we're comparing apples-to-apples, the
12341235
// comparison is a simple numeric one.

0 commit comments

Comments
 (0)