Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.h
Show All 24 Lines | |||||
/** Default for BIP61 (sending reject messages) */ | /** Default for BIP61 (sending reject messages) */ | ||||
static constexpr bool DEFAULT_ENABLE_BIP61 = true; | static constexpr bool DEFAULT_ENABLE_BIP61 = true; | ||||
class PeerLogicValidation final : public CValidationInterface, | class PeerLogicValidation final : public CValidationInterface, | ||||
public NetEventsInterface { | public NetEventsInterface { | ||||
private: | private: | ||||
CConnman *const connman; | CConnman *const connman; | ||||
BanMan *const m_banman; | |||||
bool SendRejectsAndCheckIfBanned(CNode *pnode, bool enable_bip61) | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | |||||
public: | public: | ||||
explicit PeerLogicValidation(CConnman *connman, CScheduler &scheduler, | PeerLogicValidation(CConnman *connman, BanMan *banman, | ||||
bool enable_bip61); | CScheduler &scheduler, bool enable_bip61); | ||||
/** | /** | ||||
* Overridden from CValidationInterface. | * Overridden from CValidationInterface. | ||||
*/ | */ | ||||
void | void | ||||
BlockConnected(const std::shared_ptr<const CBlock> &pblock, | BlockConnected(const std::shared_ptr<const CBlock> &pblock, | ||||
const CBlockIndex *pindexConnected, | const CBlockIndex *pindexConnected, | ||||
const std::vector<CTransactionRef> &vtxConflicted) override; | const std::vector<CTransactionRef> &vtxConflicted) override; | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |