diff options
| author | tobtoht <tob@featherwallet.org> | 2025-02-13 17:35:32 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-02-13 17:35:32 +0000 |
| commit | 71c8a726e52513ca358c50a9400988d67a92f7e2 (patch) | |
| tree | 29ab3bbc94fe9cd0b61d11a925a9acbbb594334e /src/cryptonote_protocol/block_queue.h | |
| parent | bea29939125c8e85cc266b46ebd0b07b0eb04747 (diff) | |
| parent | ed70c162244b7b42119e2011bb5cf90061160629 (diff) | |
| download | monzero-core-71c8a726e52513ca358c50a9400988d67a92f7e2.tar.gz monzero-core-71c8a726e52513ca358c50a9400988d67a92f7e2.tar.xz monzero-core-71c8a726e52513ca358c50a9400988d67a92f7e2.zip | |
Merge pull request #9759
ed70c1622 Some cleanup in span/connection_context + few more checks (Lee *!* Clagett)
Diffstat (limited to 'src/cryptonote_protocol/block_queue.h')
| -rw-r--r-- | src/cryptonote_protocol/block_queue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/block_queue.h b/src/cryptonote_protocol/block_queue.h index 64ff106a3..df64948fa 100644 --- a/src/cryptonote_protocol/block_queue.h +++ b/src/cryptonote_protocol/block_queue.h @@ -98,6 +98,7 @@ namespace cryptonote bool foreach(std::function<bool(const span&)> f) const; bool requested(const crypto::hash &hash) const; bool have(const crypto::hash &hash) const; + std::uint64_t have_height(const crypto::hash &hash) const; private: void erase_block(block_map::iterator j); @@ -107,6 +108,6 @@ namespace cryptonote block_map blocks; mutable boost::recursive_mutex mutex; std::unordered_set<crypto::hash> requested_hashes; - std::unordered_set<crypto::hash> have_blocks; + std::unordered_map<crypto::hash, std::uint64_t> have_blocks; }; } |
