forked from lthn/blockchain
currency_core: resolve build warnings (-Wlogical-not-parentheses)
This commit is contained in:
parent
9d0f8c9966
commit
e344efefb7
2 changed files with 3 additions and 3 deletions
|
|
@ -3544,7 +3544,7 @@ bool blockchain_storage::check_tx_inputs(const transaction& tx, const crypto::ha
|
|||
if (!m_is_in_checkpoint_zone)
|
||||
{
|
||||
CHECK_AND_ASSERT_MES(tx.signatures.size() == sig_index, false, "tx signatures count differs from inputs");
|
||||
if (!get_tx_flags(tx)&TX_FLAG_SIGNATURE_MODE_SEPARATE)
|
||||
if (!(get_tx_flags(tx) & TX_FLAG_SIGNATURE_MODE_SEPARATE))
|
||||
{
|
||||
bool r = validate_attachment_info(tx.extra, tx.attachment, false);
|
||||
CHECK_AND_ASSERT_MES(r, false, "Failed to validate attachments in tx " << tx_prefix_hash << ": incorrect extra_attachment_info in tx.extra");
|
||||
|
|
|
|||
|
|
@ -1109,7 +1109,7 @@ namespace currency
|
|||
att_count++;
|
||||
}
|
||||
}
|
||||
if (!flags&TX_FLAG_SIGNATURE_MODE_SEPARATE)
|
||||
if (!(flags & TX_FLAG_SIGNATURE_MODE_SEPARATE))
|
||||
{
|
||||
//take hash from attachment and put into extra
|
||||
if (tx.attachment.size())
|
||||
|
|
@ -2374,7 +2374,7 @@ namespace currency
|
|||
//---------------------------------------------------------------
|
||||
bool is_pos_block(const block& b)
|
||||
{
|
||||
if (!b.flags&CURRENCY_BLOCK_FLAG_POS_BLOCK)
|
||||
if (!(b.flags & CURRENCY_BLOCK_FLAG_POS_BLOCK))
|
||||
return false;
|
||||
return is_pos_block(b.miner_tx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue