MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetAvailableSnapshotHeights

Method GetAvailableSnapshotHeights

src/kernel/chainparams.cpp:691–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691std::vector<int> CChainParams::GetAvailableSnapshotHeights() const
692{
693 std::vector<int> heights;
694 heights.reserve(m_assumeutxo_data.size());
695
696 for (const auto& data : m_assumeutxo_data) {
697 heights.emplace_back(data.height);
698 }
699 return heights;
700}
701
702std::optional<ChainType> GetNetworkForMagic(const MessageStartChars& message)
703{

Callers 2

ActivateSnapshotMethod · 0.80
dumptxoutsetFunction · 0.80

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected