aboutsummaryrefslogtreecommitdiff
path: root/src/blockencodings.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-06-08 12:06:09 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-06-11 15:44:01 +0200
commit67ca816849d0aa292a138e6c08edafd17ad6a948 (patch)
treee2ca124d75428396a34ea9308e644436de912268 /src/blockencodings.cpp
parent9f841a6c3d8ebc6a84ac646604eebcdb9d6763ef (diff)
downloadbitcoin-67ca816849d0aa292a138e6c08edafd17ad6a948.tar.xz
Simplify "bool x = y ? true : false" to "bool x = y"
Diffstat (limited to 'src/blockencodings.cpp')
-rw-r--r--src/blockencodings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockencodings.cpp b/src/blockencodings.cpp
index ee2c654980..9cac10d2b8 100644
--- a/src/blockencodings.cpp
+++ b/src/blockencodings.cpp
@@ -172,7 +172,7 @@ ReadStatus PartiallyDownloadedBlock::InitData(const CBlockHeaderAndShortTxIDs& c
bool PartiallyDownloadedBlock::IsTxAvailable(size_t index) const {
assert(!header.IsNull());
assert(index < txn_available.size());
- return txn_available[index] ? true : false;
+ return txn_available[index] != nullptr;
}
ReadStatus PartiallyDownloadedBlock::FillBlock(CBlock& block, const std::vector<CTransactionRef>& vtx_missing) {