| 179 | } |
| 180 | |
| 181 | bool PartiallyDownloadedBlock::IsTxAvailable(size_t index) const |
| 182 | { |
| 183 | if (header.IsNull()) return false; |
| 184 | |
| 185 | assert(index < txn_available.size()); |
| 186 | return txn_available[index] != nullptr; |
| 187 | } |
| 188 | |
| 189 | ReadStatus PartiallyDownloadedBlock::FillBlock(CBlock& block, const std::vector<CTransactionRef>& vtx_missing, bool segwit_active) |
| 190 | { |