Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
// 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. | ||||
#ifndef BITCOIN_INTERFACES_CHAIN_H | #ifndef BITCOIN_INTERFACES_CHAIN_H | ||||
#define BITCOIN_INTERFACES_CHAIN_H | #define BITCOIN_INTERFACES_CHAIN_H | ||||
#include <optional.h> | #include <optional.h> | ||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
▲ Show 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | public: | ||||
//! Relay current minimum fee (from -minrelaytxfee settings). | //! Relay current minimum fee (from -minrelaytxfee settings). | ||||
virtual CFeeRate relayMinFee() = 0; | virtual CFeeRate relayMinFee() = 0; | ||||
//! Relay dust fee setting (-dustrelayfee), reflecting lowest rate it's | //! Relay dust fee setting (-dustrelayfee), reflecting lowest rate it's | ||||
//! economical to spend. | //! economical to spend. | ||||
virtual CFeeRate relayDustFee() = 0; | virtual CFeeRate relayDustFee() = 0; | ||||
//! Check if pruning is enabled. | //! Check if any block has been pruned. | ||||
virtual bool getPruneMode() = 0; | virtual bool havePruned() = 0; | ||||
//! Check if p2p enabled. | //! Check if p2p enabled. | ||||
virtual bool p2pEnabled() = 0; | virtual bool p2pEnabled() = 0; | ||||
//! Check if the node is ready to broadcast transactions. | //! Check if the node is ready to broadcast transactions. | ||||
virtual bool isReadyToBroadcast() = 0; | virtual bool isReadyToBroadcast() = 0; | ||||
//! Check if in IBD. | //! Check if in IBD. | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |