Changeset View
Changeset View
Standalone View
Standalone View
src/banman.cpp
// 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. | ||||
#include <banman.h> | #include <banman.h> | ||||
#include <netaddress.h> | #include <netaddress.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/time.h> | #include <util/time.h> | ||||
#include <util/translation.h> | |||||
BanMan::BanMan(fs::path ban_file, const CChainParams &chainparams, | BanMan::BanMan(fs::path ban_file, const CChainParams &chainparams, | ||||
CClientUIInterface *client_interface, int64_t default_ban_time) | CClientUIInterface *client_interface, int64_t default_ban_time) | ||||
: m_client_interface(client_interface), | : m_client_interface(client_interface), | ||||
m_ban_db(std::move(ban_file), chainparams), | m_ban_db(std::move(ban_file), chainparams), | ||||
m_default_ban_time(default_ban_time) { | m_default_ban_time(default_ban_time) { | ||||
if (m_client_interface) { | if (m_client_interface) { | ||||
m_client_interface->InitMessage(_("Loading banlist...")); | m_client_interface->InitMessage(_("Loading banlist...")); | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |