LCOV - code coverage report
Current view: top level - src/policy - settings.h (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 6 6 100.0 %
Date: 2020-09-26 01:30:44 Functions: 3 3 100.0 %

          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        3324 : static inline bool IsStandardTx(const CTransaction& tx, std::string& reason)
      21             : {
      22        3324 :     return IsStandardTx(tx, ::fIsBareMultisigStd, ::dustRelayFee, reason);
      23             : }
      24             : 
      25   208142926 : static inline int64_t GetVirtualTransactionSize(int64_t weight, int64_t sigop_cost)
      26             : {
      27   208142926 :     return GetVirtualTransactionSize(weight, sigop_cost, ::nBytesPerSigOp);
      28             : }
      29             : 
      30           6 : static inline int64_t GetVirtualTransactionSize(const CTransaction& tx, int64_t sigop_cost)
      31             : {
      32           6 :     return GetVirtualTransactionSize(tx, sigop_cost, ::nBytesPerSigOp);
      33             : }
      34             : 
      35             : #endif // BITCOIN_POLICY_SETTINGS_H

Generated by: LCOV version 1.15