#include <stdio.h>
#include <math.h>
#include "cryptonote_core/blockchain.h"
#include "cryptonote_core/tx_pool.h"
#include "cryptonote_core/cryptonote_core.h"
#include "blockchain_db/testdb.h"
Go to the source code of this file.
◆ IN_UNIT_TESTS
◆ LONG_TERM_BLOCK_WEIGHT_WINDOW
| #define LONG_TERM_BLOCK_WEIGHT_WINDOW 5000 |
◆ PREFIX
◆ PREFIX_WINDOW
| #define PREFIX_WINDOW |
( |
|
hf_version, |
|
|
|
window |
|
) |
| |
Value: std::unique_ptr<cryptonote::Blockchain> bc; \
cryptonote::tx_memory_pool txpool(*bc); \
const std::pair<uint8_t, uint64_t> hard_forks[3]; \
hard_forks, \
window, \
}; \
} opts; \
cryptonote::Blockchain *blockchain = bc.get(); \
if (!r) \
{ \
fprintf(stderr, "Failed to init blockchain\n"); \
exit(1); \
}
#define LONG_TERM_BLOCK_WEIGHT_WINDOW
unsigned __int64 uint64_t
Definition at line 112 of file block_weight.cpp.
◆ test_t
◆ main()