Changeset View
Changeset View
Standalone View
Standalone View
src/blockencodings.cpp
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | for (auto &extra_txn : extra_txns) { | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
LogPrint(BCLog::CMPCTBLOCK, | LogPrint(BCLog::CMPCTBLOCK, | ||||
"Initialized PartiallyDownloadedBlock for block %s using a " | "Initialized PartiallyDownloadedBlock for block %s using a " | ||||
"cmpctblock of size %lu\n", | "cmpctblock of size %lu\n", | ||||
cmpctblock.header.GetHash().ToString(), | cmpctblock.header.GetHash().ToString(), | ||||
GetSerializeSize(cmpctblock, SER_NETWORK, PROTOCOL_VERSION)); | GetSerializeSize(cmpctblock, PROTOCOL_VERSION)); | ||||
return READ_STATUS_OK; | return READ_STATUS_OK; | ||||
} | } | ||||
bool PartiallyDownloadedBlock::IsTxAvailable(size_t index) const { | bool PartiallyDownloadedBlock::IsTxAvailable(size_t index) const { | ||||
assert(!header.IsNull()); | assert(!header.IsNull()); | ||||
assert(index < txns_available.size()); | assert(index < txns_available.size()); | ||||
return txns_available[index] != nullptr; | return txns_available[index] != nullptr; | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |