Offline Transaction Signing (OTS) 0.1.0
Loading...
Searching...
No Matches
data.hpp File Reference

Constants for the Monero network to calculate the height from a timestamp and reverse. More...

#include <cstdint>
Include dependency graph for data.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ots::data::NetworkData
 

Namespaces

namespace  ots
 The library exists complete only in this namespace.
 
namespace  ots::data
 

Macros

#define V1_SECONDS_PER_BLOCK   60
 
#define V2_SECONDS_PER_BLOCK   120
 
#define MAINNET_BIRTH_TIME   1397818193
 
#define MAINNET_V2_TIME   1458748658
 
#define MAINNET_V2_BLOCK   1009827
 
#define MAINNET_ROLLBACK   0
 
#define TESTNET_BIRTH_TIME   1410295020
 
#define TESTNET_V2_TIME   1448285909
 
#define TESTNET_V2_BLOCK   624634
 
#define TESTNET_ROLLBACK   342100
 
#define STAGENET_BIRTH_TIME   1518932025
 
#define STAGENET_V2_TIME   1520937818
 
#define STAGENET_V2_BLOCK   32000
 
#define STAGENET_ROLLBACK   30000
 

Variables

static const NetworkData ots::data::MAINNET_DATA
 
static const NetworkData ots::data::TESTNET_DATA
 
static const NetworkData ots::data::STAGENET_DATA
 

Detailed Description

Constants for the Monero network to calculate the height from a timestamp and reverse.

Todo:
TODO: should search directly in monero source to collect the data from there

Macro Definition Documentation

◆ MAINNET_BIRTH_TIME

#define MAINNET_BIRTH_TIME   1397818193

◆ MAINNET_ROLLBACK

#define MAINNET_ROLLBACK   0

◆ MAINNET_V2_BLOCK

#define MAINNET_V2_BLOCK   1009827

◆ MAINNET_V2_TIME

#define MAINNET_V2_TIME   1458748658

◆ STAGENET_BIRTH_TIME

#define STAGENET_BIRTH_TIME   1518932025

◆ STAGENET_ROLLBACK

#define STAGENET_ROLLBACK   30000

◆ STAGENET_V2_BLOCK

#define STAGENET_V2_BLOCK   32000

◆ STAGENET_V2_TIME

#define STAGENET_V2_TIME   1520937818

◆ TESTNET_BIRTH_TIME

#define TESTNET_BIRTH_TIME   1410295020

◆ TESTNET_ROLLBACK

#define TESTNET_ROLLBACK   342100

◆ TESTNET_V2_BLOCK

#define TESTNET_V2_BLOCK   624634

◆ TESTNET_V2_TIME

#define TESTNET_V2_TIME   1448285909

◆ V1_SECONDS_PER_BLOCK

#define V1_SECONDS_PER_BLOCK   60

◆ V2_SECONDS_PER_BLOCK

#define V2_SECONDS_PER_BLOCK   120