danicoin/tests/integration_test_lib/TestNode.h
2015-04-23 20:07:22 +04:00

24 lines
668 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 <system_error>
#include <INode.h>
namespace Tests {
namespace Common {
class TestNode {
public:
virtual bool startMining(size_t threadsCount, const std::string& address) = 0;
virtual bool stopMining() = 0;
virtual bool stopDaemon() = 0;
virtual bool submitBlock(const std::string& block) = 0;
virtual bool makeINode(std::unique_ptr<CryptoNote::INode>& node) = 0;
virtual ~TestNode() { }
};
}
}