> For the complete documentation index, see [llms.txt](https://kelby.gitbook.io/monero/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kelby.gitbook.io/monero/wang-luo-chuan-shu/blockqueue.md).

# block\_queue

```
    struct span
    {
      uint64_t start_block_height;
      std::vector<crypto::hash> hashes;
      std::vector<cryptonote::block_complete_entry> blocks;
      boost::uuids::uuid connection_id;
      uint64_t nblocks;
      float rate;
      size_t size;
      boost::posix_time::ptime time;
    };
    typedef std::set<span> block_map;
```

```
 block_map blocks;
```

add\_blocks

flush\_spans

flush\_stale\_spans

remove\_span

remove\_spans

get\_max\_block\_height

print

get\_overview

reserve\_span

is\_blockchain\_placeholder

get\_start\_gap\_span

get\_next\_span\_if\_scheduled

set\_span\_hashes

get\_next\_span

has\_next\_span

get\_data\_size

get\_num\_filled\_spans\_prefix

get\_num\_filled\_spans

get\_last\_known\_hash

has\_spans

get\_speed

foreach

requested
