Skip to content

Commit

Permalink
Code style fix.
Browse files Browse the repository at this point in the history
This if statement is a little obtuse and using braces here
improves readability.
  • Loading branch information
btcdrak committed Mar 18, 2016
1 parent 6170506 commit c8d309e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/script/interpreter.cpp
Expand Up @@ -1227,8 +1227,9 @@ bool TransactionSignatureChecker::CheckSequence(const CScriptNum& nSequence) con
if (!(
(txToSequenceMasked < CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG && nSequenceMasked < CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG) ||
(txToSequenceMasked >= CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG && nSequenceMasked >= CTxIn::SEQUENCE_LOCKTIME_TYPE_FLAG)
))
)) {
return false;
}

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

0 comments on commit c8d309e

Please sign in to comment.