Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_NET_PROCESSING_H | #ifndef BITCOIN_NET_PROCESSING_H | ||||
#define BITCOIN_NET_PROCESSING_H | #define BITCOIN_NET_PROCESSING_H | ||||
#include <consensus/params.h> | #include <consensus/params.h> | ||||
#include <net.h> | #include <net.h> | ||||
#include <sync.h> | #include <sync.h> | ||||
#include <validationinterface.h> | #include <validationinterface.h> | ||||
extern RecursiveMutex cs_main; | extern RecursiveMutex cs_main; | ||||
extern RecursiveMutex g_cs_orphans; | extern RecursiveMutex g_cs_orphans; | ||||
namespace avalanche { | |||||
struct ProofId; | |||||
}; | |||||
deadalnix: I don't think the semicolon is needed. | |||||
class BlockTransactionsRequest; | class BlockTransactionsRequest; | ||||
class BlockValidationState; | class BlockValidationState; | ||||
class CBlockHeader; | class CBlockHeader; | ||||
class CTxMemPool; | class CTxMemPool; | ||||
class ChainstateManager; | class ChainstateManager; | ||||
class Config; | class Config; | ||||
class TxValidationState; | class TxValidationState; | ||||
▲ Show 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
/** Get statistics from node state */ | /** Get statistics from node state */ | ||||
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats); | bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats); | ||||
/** Relay transaction to every node */ | /** Relay transaction to every node */ | ||||
void RelayTransaction(const TxId &txid, const CConnman &connman); | void RelayTransaction(const TxId &txid, const CConnman &connman); | ||||
/** Relay proof to every node */ | |||||
void RelayProof(const avalanche::ProofId &proofid, const CConnman &connman); | |||||
#endif // BITCOIN_NET_PROCESSING_H | #endif // BITCOIN_NET_PROCESSING_H |
I don't think the semicolon is needed.