LCOV - code coverage report
Current view: top level - src/policy - settings.h (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 9 9 100.0 %
Date: 2022-04-21 14:51:19 Functions: 5 30 16.7 %
Legend: Modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed

Not modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed
Branches: 0 0 -

           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                 :      31805 : {
#      22                 :      31805 :     return IsStandardTx(tx, ::fIsBareMultisigStd, ::dustRelayFee, reason);
#      23                 :      31805 : }
#      24                 :            : 
#      25                 :            : static inline int64_t GetVirtualTransactionSize(int64_t weight, int64_t sigop_cost)
#      26                 :  447772342 : {
#      27                 :  447772342 :     return GetVirtualTransactionSize(weight, sigop_cost, ::nBytesPerSigOp);
#      28                 :  447772342 : }
#      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

Generated by: LCOV version 0-eol-96201-ge66f56f4af6a