danicoin/tests/core_tests/chaingen001.h
2015-04-23 20:07:22 +04:00

25 lines
871 B
C++

// Copyright (c) 2011-2015 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include "chaingen.h"
class gen_simple_chain_001: public test_chain_unit_base
{
public:
gen_simple_chain_001();
bool generate(std::vector<test_event_entry> &events);
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);
};
class one_block: public test_chain_unit_base
{
cryptonote::account_base alice;
public:
one_block();
bool generate(std::vector<test_event_entry> &events);
bool verify_1(cryptonote::core& c, size_t ev_index, const std::vector<test_event_entry> &events);
};