38 : m_invalid_tx_index(0)
39 , m_invalid_block_index(0)
47 if (m_invalid_tx_index == event_idx)
55 if (m_invalid_block_index == event_idx)
63 m_invalid_block_index = ev_index + 1;
69 m_invalid_tx_index = ev_index + 1;
73 bool generate_with(std::vector<test_event_entry>& events,
const int *out_idx,
int mixin,
74 uint64_t amount_paid,
bool valid)
const;
77 size_t m_invalid_tx_index;
78 size_t m_invalid_block_index;
83 const std::pair<uint8_t, uint64_t>
hard_forks[3] = {std::make_pair(1, 0), std::make_pair(2, 1), std::make_pair(0, 0)};
91 bool generate(std::vector<test_event_entry>& events)
const;
97 bool generate(std::vector<test_event_entry>& events)
const;
103 bool generate(std::vector<test_event_entry>& events)
const;
109 bool generate(std::vector<test_event_entry>& events)
const;
115 bool generate(std::vector<test_event_entry>& events)
const;
121 bool generate(std::vector<test_event_entry>& events)
const;
bool m_verification_failed
gen_v2_tx_validation_base()
bool mark_invalid_tx(cryptonote::core &, size_t ev_index, const std::vector< test_event_entry > &)
bool generate(std::vector< test_event_entry > &events) const
const std::pair< uint8_t, uint64_t > hard_forks[2]
bool check_tx_verification_context(const cryptonote::tx_verification_context &tvc, bool tx_added, size_t event_idx, const cryptonote::transaction &)
bool generate_with(std::vector< test_event_entry > &events, const int *out_idx, int mixin, uint64_t amount_paid, bool valid) const
handles core cryptonote functionality
unsigned __int64 uint64_t
bool generate(std::vector< test_event_entry > &events) const
#define REGISTER_CALLBACK_METHOD(CLASS, METHOD)
bool generate(std::vector< test_event_entry > &events) const
bool generate(std::vector< test_event_entry > &events) const
bool generate(std::vector< test_event_entry > &events) const
const cryptonote::test_options test_options
bool mark_invalid_block(cryptonote::core &, size_t ev_index, const std::vector< test_event_entry > &)
bool m_verification_failed
bool generate(std::vector< test_event_entry > &events) const
bool check_block_verification_context(const cryptonote::block_verification_context &bvc, size_t event_idx, const cryptonote::block &)