Electroneum
blocks Namespace Reference

Functions

const epee::span< const unsigned char > GetCheckpointsData (cryptonote::network_type network)
 

Variables

const std::unordered_map< cryptonote::network_type, const epee::span< const unsigned char >, std::hash< size_t > > CheckpointsByNetwork
 

Function Documentation

◆ GetCheckpointsData()

const epee::span< const unsigned char > blocks::GetCheckpointsData ( cryptonote::network_type  network)

Definition at line 21 of file blocks.cpp.

22  {
23  const auto it = CheckpointsByNetwork.find(network);
24  if (it != CheckpointsByNetwork.end())
25  {
26  return it->second;
27  }
28  return nullptr;
29  }
const std::unordered_map< cryptonote::network_type, const epee::span< const unsigned char >, std::hash< size_t > > CheckpointsByNetwork
Definition: blocks.cpp:15
Here is the caller graph for this function:

Variable Documentation

◆ CheckpointsByNetwork

const std::unordered_map<cryptonote::network_type, const epee::span<const unsigned char>, std::hash<size_t> > blocks::CheckpointsByNetwork
Initial value:
= {
}
const size_t stagenet_blocks_len
const size_t checkpoints_len
const unsigned char testnet_blocks[]
const unsigned char stagenet_blocks[]
const size_t testnet_blocks_len
const unsigned char checkpoints[]

Definition at line 15 of file blocks.cpp.