forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpop_common.hpp
34 lines (21 loc) · 1.13 KB
/
pop_common.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2019-2021 Xenios SEZC
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_SRC_VBK_POP_COMMON_HPP
#define BITCOIN_SRC_VBK_POP_COMMON_HPP
#include "sync.h"
#include <uint256.h>
#include <veriblock/pop.hpp>
class CBlockIndex;
namespace VeriBlock {
altintegration::PopContext& GetPop();
void StopPop();
void SetPopConfig(const altintegration::Config& config);
void SetPop(std::shared_ptr<altintegration::PayloadsStorage> payloads_provider, std::shared_ptr<altintegration::BlockReader> block_provider, std::unique_ptr<altintegration::EthashCache> ethash_cache, std::unique_ptr<altintegration::ProgpowHeaderCache> progpow_header_cache);
altintegration::BlockIndex<altintegration::AltBlock>* GetAltBlockIndex(const uint256& hash);
altintegration::BlockIndex<altintegration::AltBlock>* GetAltBlockIndex(const CBlockIndex* index);
bool isKeystone(const CBlockIndex& block);
std::string toPrettyString(const altintegration::PopContext& pop);
} // namespace VeriBlock
#endif // BITCOIN_SRC_VBK_POP_COMMON_HPP