Changeset View
Changeset View
Standalone View
Standalone View
src/banman.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2017 The Bitcoin Core developers | // Copyright (c) 2009-2017 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_BANMAN_H | #ifndef BITCOIN_BANMAN_H | ||||
#define BITCOIN_BANMAN_H | #define BITCOIN_BANMAN_H | ||||
#include <addrdb.h> | #include <addrdb.h> | ||||
#include <bloom.h> | #include <bloom.h> | ||||
#include <fs.h> | #include <fs.h> | ||||
#include <net_types.h> // For banmap_t | |||||
#include <sync.h> | #include <sync.h> | ||||
#include <chrono> | #include <chrono> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <memory> | #include <memory> | ||||
// Default 24-hour ban. | // Default 24-hour ban. | ||||
// NOTE: When adjusting this, update rpcnet:setban's help ("24h") | // NOTE: When adjusting this, update rpcnet:setban's help ("24h") | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |