Electroneum
double_spend.h File Reference
#include "chaingen.h"
#include "double_spend.inl"
Include dependency graph for double_spend.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gen_double_spend_base< concrete_test >
 
struct  gen_double_spend_in_tx< txs_keeped_by_block >
 
struct  gen_double_spend_in_the_same_block< txs_keeped_by_block >
 
struct  gen_double_spend_in_different_blocks< txs_keeped_by_block >
 
struct  gen_double_spend_in_alt_chain_in_the_same_block< txs_keeped_by_block >
 
struct  gen_double_spend_in_alt_chain_in_different_blocks< txs_keeped_by_block >
 
class  gen_double_spend_in_different_chains
 

Macros

#define INIT_DOUBLE_SPEND_TEST()
 

Variables

const size_t invalid_index_value = std::numeric_limits<size_t>::max()
 
const uint64_t FIRST_BLOCK_REWARD = 2002716
 

Macro Definition Documentation

◆ INIT_DOUBLE_SPEND_TEST

#define INIT_DOUBLE_SPEND_TEST ( )
Value:
uint64_t ts_start = 1338224400; \
GENERATE_ACCOUNT(miner_account); \
MAKE_GENESIS_BLOCK(events, blk_0, miner_account, ts_start); \
MAKE_ACCOUNT(events, bob_account); \
MAKE_ACCOUNT(events, alice_account); \
REWIND_BLOCKS(events, blk_0r, blk_0, miner_account); \
MAKE_TX(events, tx_0, miner_account, bob_account, send_amount, blk_0); \
MAKE_NEXT_BLOCK_TX1(events, blk_1, blk_0r, miner_account, tx_0); \
REWIND_BLOCKS(events, blk_1r, blk_1, miner_account);
unsigned __int64 uint64_t
Definition: stdint.h:136

Definition at line 141 of file double_spend.h.

Variable Documentation

◆ FIRST_BLOCK_REWARD

const uint64_t FIRST_BLOCK_REWARD = 2002716

Definition at line 36 of file double_spend.h.

◆ invalid_index_value

const size_t invalid_index_value = std::numeric_limits<size_t>::max()

Definition at line 35 of file double_spend.h.