Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.cpp
// Copyright (c) 2018 The Bitcoin Core developers | // Copyright (c) 2018-2019 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 <interfaces/chain.h> | #include <interfaces/chain.h> | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <interfaces/handler.h> | #include <interfaces/handler.h> | ||||
▲ Show 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | public: | ||||
limit_descendant_count, limit_descendant_size, | limit_descendant_count, limit_descendant_size, | ||||
unused_error_string); | unused_error_string); | ||||
} | } | ||||
CFeeRate estimateFee() const override { | CFeeRate estimateFee() const override { | ||||
return ::g_mempool.estimateFee(); | return ::g_mempool.estimateFee(); | ||||
} | } | ||||
CFeeRate relayMinFee() override { return ::minRelayTxFee; } | CFeeRate relayMinFee() override { return ::minRelayTxFee; } | ||||
CFeeRate relayDustFee() override { return ::dustRelayFee; } | CFeeRate relayDustFee() override { return ::dustRelayFee; } | ||||
bool getPruneMode() override { return ::fPruneMode; } | bool havePruned() override { | ||||
LOCK(cs_main); | |||||
return ::fHavePruned; | |||||
} | |||||
bool p2pEnabled() override { return m_node.connman != nullptr; } | bool p2pEnabled() override { return m_node.connman != nullptr; } | ||||
bool isReadyToBroadcast() override { | bool isReadyToBroadcast() override { | ||||
return !::fImporting && !::fReindex && !isInitialBlockDownload(); | return !::fImporting && !::fReindex && !isInitialBlockDownload(); | ||||
} | } | ||||
bool isInitialBlockDownload() override { | bool isInitialBlockDownload() override { | ||||
return ::ChainstateActive().IsInitialBlockDownload(); | return ::ChainstateActive().IsInitialBlockDownload(); | ||||
} | } | ||||
bool shutdownRequested() override { return ShutdownRequested(); } | bool shutdownRequested() override { return ShutdownRequested(); } | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |