danicoin/src/CryptoNoteCore/IMinerHandler.h
2016-01-18 15:33:29 +00:00

19 lines
595 B
C++

// Copyright (c) 2011-2016 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 "CryptoNoteCore/CryptoNoteBasic.h"
#include "CryptoNoteCore/Difficulty.h"
namespace CryptoNote {
struct IMinerHandler {
virtual bool handle_block_found(Block& b) = 0;
virtual bool get_block_template(Block& b, const AccountPublicAddress& adr, difficulty_type& diffic, uint32_t& height, const BinaryArray& ex_nonce) = 0;
protected:
~IMinerHandler(){};
};
}