danicoin/tests/CoreTests/Chaingen001.h

25 lines
870 B
C
Raw Normal View History

// Copyright (c) 2011-2016 The Cryptonote developers
2014-03-03 22:07:58 +00:00
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
2014-08-13 10:51:37 +00:00
#pragma once
2015-07-30 15:22:07 +00:00
#include "Chaingen.h"
2014-08-13 10:51:37 +00:00
2014-03-03 22:07:58 +00:00
class gen_simple_chain_001: public test_chain_unit_base
{
public:
gen_simple_chain_001();
bool generate(std::vector<test_event_entry> &events);
2015-05-27 12:08:46 +00:00
bool verify_callback_1(CryptoNote::core& c, size_t ev_index, const std::vector<test_event_entry> &events);
bool verify_callback_2(CryptoNote::core& c, size_t ev_index, const std::vector<test_event_entry> &events);
2014-03-03 22:07:58 +00:00
};
class one_block: public test_chain_unit_base
{
2015-07-30 15:22:07 +00:00
CryptoNote::AccountBase alice;
2014-03-03 22:07:58 +00:00
public:
one_block();
bool generate(std::vector<test_event_entry> &events);
2015-05-27 12:08:46 +00:00
bool verify_1(CryptoNote::core& c, size_t ev_index, const std::vector<test_event_entry> &events);
2014-03-03 22:07:58 +00:00
};