diff options
| author | Matt Corallo <[email protected]> | 2017-01-12 12:20:11 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-01-12 12:20:11 -0800 |
| commit | fac4c78028d132ee7becc1dc54a0c881ae1a0287 (patch) | |
| tree | 279ba5b403821cc7750a12d1453c93a57faed2e8 /src/blockencodings.cpp | |
| parent | Add extra_count lower bound to compact reconstruction debug print (diff) | |
| download | discoin-fac4c78028d132ee7becc1dc54a0c881ae1a0287.tar.xz discoin-fac4c78028d132ee7becc1dc54a0c881ae1a0287.zip | |
Make PartiallyDownloadedBlock::InitData's second param const
Diffstat (limited to 'src/blockencodings.cpp')
| -rw-r--r-- | src/blockencodings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockencodings.cpp b/src/blockencodings.cpp index c27cde216..48431cfb3 100644 --- a/src/blockencodings.cpp +++ b/src/blockencodings.cpp @@ -47,7 +47,7 @@ uint64_t CBlockHeaderAndShortTxIDs::GetShortID(const uint256& txhash) const { -ReadStatus PartiallyDownloadedBlock::InitData(const CBlockHeaderAndShortTxIDs& cmpctblock, std::vector<std::pair<uint256, CTransactionRef>>& extra_txn) { +ReadStatus PartiallyDownloadedBlock::InitData(const CBlockHeaderAndShortTxIDs& cmpctblock, const std::vector<std::pair<uint256, CTransactionRef>>& extra_txn) { if (cmpctblock.header.IsNull() || (cmpctblock.shorttxids.empty() && cmpctblock.prefilledtxn.empty())) return READ_STATUS_INVALID; if (cmpctblock.shorttxids.size() + cmpctblock.prefilledtxn.size() > MAX_BLOCK_BASE_SIZE / MIN_TRANSACTION_BASE_SIZE) |