#include <block_validation.h>
|
| bool | generate (std::vector< test_event_entry > &events) const |
| |
| | gen_block_verification_base () |
| |
| bool | check_block_verification_context (const cryptonote::block_verification_context &bvc, size_t event_idx, const cryptonote::block &) |
| |
| bool | check_block_purged (cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events) |
| |
| void | register_callback (const std::string &cb_name, verify_callback cb) |
| |
| bool | verify (const std::string &cb_name, cryptonote::core &c, size_t ev_index, const std::vector< test_event_entry > &events) |
| |
| bool | check_block_verification_context (const cryptonote::block_verification_context &bvc, size_t event_idx, const cryptonote::block &) |
| |
| bool | check_tx_verification_context (const cryptonote::tx_verification_context &tvc, bool, size_t, const cryptonote::transaction &) |
| |
| bool | check_tx_verification_context_array (const std::vector< cryptonote::tx_verification_context > &tvcs, size_t, size_t, const std::vector< cryptonote::transaction > &) |
| |
Definition at line 114 of file block_validation.h.
◆ generate()
Definition at line 169 of file block_validation.cpp.
173 std::vector<uint64_t> timestamps;
174 std::vector<difficulty_type> commulative_difficulties;
175 if (!lift_up_difficulty(events, timestamps, commulative_difficulties, generator, 2, blk_0, miner_account))
181 const block& blk_last = boost::get<block>(events.back());
188 if (!generator.construct_block_manually(blk_3, blk_last, miner_account,
192 while (0 == blk_3.
nonce);
194 events.push_back(blk_3);
difficulty_type next_difficulty(std::vector< uint64_t > timestamps, std::vector< difficulty_type > cumulative_difficulties, size_t target_seconds, uint8_t version)
unsigned __int64 uint64_t
boost::multiprecision::uint128_t difficulty_type
#define DIFFICULTY_TARGET
#define BLOCK_VALIDATION_INIT_GENERATE()
The documentation for this struct was generated from the following files: