2015-04-23 16:07:22 +00:00
|
|
|
// 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() { }
|
|
|
|
};
|
|
|
|
}
|
2015-04-06 16:13:07 +00:00
|
|
|
}
|