Fix -Wparentheses gcc warning

This commit is contained in:
Hennadii Stepanov 2022-07-19 10:46:10 +01:00
parent 6d8707b21d
commit d68ca4ef64
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -113,7 +113,7 @@ FUZZ_TARGET_INIT(txorphan, initialize_orphanage)
LOCK(g_cs_orphans);
bool add_tx = orphanage.AddTx(tx, peer_id);
// if have_tx is still false, it must be too big
Assert(!have_tx == GetTransactionWeight(*tx) > MAX_STANDARD_TX_WEIGHT);
Assert(!have_tx == (GetTransactionWeight(*tx) > MAX_STANDARD_TX_WEIGHT));
Assert(!have_tx || !add_tx);
}
},