Branch data Line data Source code
# 1 : : // Copyright (c) 2009-2010 Satoshi Nakamoto # 2 : : // Copyright (c) 2009-2019 The Bitcoin Core developers # 3 : : // Distributed under the MIT software license, see the accompanying # 4 : : // file COPYING or http://www.opensource.org/licenses/mit-license.php. # 5 : : # 6 : : #ifndef BITCOIN_POLICY_SETTINGS_H # 7 : : #define BITCOIN_POLICY_SETTINGS_H # 8 : : # 9 : : #include <policy/policy.h> # 10 : : # 11 : : class CFeeRate; # 12 : : class CTransaction; # 13 : : # 14 : : // Policy settings which are configurable at runtime. # 15 : : extern CFeeRate incrementalRelayFee; # 16 : : extern CFeeRate dustRelayFee; # 17 : : extern unsigned int nBytesPerSigOp; # 18 : : extern bool fIsBareMultisigStd; # 19 : : # 20 : : static inline bool IsStandardTx(const CTransaction& tx, std::string& reason) # 21 : 12712 : { # 22 : 12712 : return IsStandardTx(tx, ::fIsBareMultisigStd, ::dustRelayFee, reason); # 23 : 12712 : } # 24 : : # 25 : : static inline int64_t GetVirtualTransactionSize(int64_t weight, int64_t sigop_cost) # 26 : 177670885 : { # 27 : 177670885 : return GetVirtualTransactionSize(weight, sigop_cost, ::nBytesPerSigOp); # 28 : 177670885 : } # 29 : : # 30 : : static inline int64_t GetVirtualTransactionSize(const CTransaction& tx, int64_t sigop_cost) # 31 : 6 : { # 32 : 6 : return GetVirtualTransactionSize(tx, sigop_cost, ::nBytesPerSigOp); # 33 : 6 : } # 34 : : # 35 : : #endif // BITCOIN_POLICY_SETTINGS_H