mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
cdd1bbe616
- Remove using namespace literals where it explicitly includes cryptonote_config. There's still duplicates but implicitly.
22 lines
875 B
C++
22 lines
875 B
C++
#pragma once
|
|
|
|
#include "cryptonote_config.h"
|
|
#include <string_view>
|
|
|
|
namespace blocks
|
|
{
|
|
|
|
template <cryptonote::network_type Network> std::string_view checkpoint_data() { return ""sv; }
|
|
template<> std::string_view checkpoint_data<cryptonote::network_type::MAINNET>();
|
|
template<> std::string_view checkpoint_data<cryptonote::network_type::DEVNET>();
|
|
template<> std::string_view checkpoint_data<cryptonote::network_type::TESTNET>();
|
|
|
|
inline std::string_view GetCheckpointsData(cryptonote::network_type network)
|
|
{
|
|
if (network == cryptonote::network_type::MAINNET) return checkpoint_data<cryptonote::network_type::MAINNET>();
|
|
if (network == cryptonote::network_type::TESTNET) return checkpoint_data<cryptonote::network_type::TESTNET>();
|
|
if (network == cryptonote::network_type::DEVNET) return checkpoint_data<cryptonote::network_type::DEVNET>();
|
|
return ""sv;
|
|
}
|
|
|
|
}
|