/Users/eugenesiegel/btc/bitcoin/src/consensus/validation.h
| Line | Count | Source (jump to first uncovered line) | 
| 1 |  | // Copyright (c) 2009-2010 Satoshi Nakamoto | 
| 2 |  | // Copyright (c) 2009-2022 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_CONSENSUS_VALIDATION_H | 
| 7 |  | #define BITCOIN_CONSENSUS_VALIDATION_H | 
| 8 |  |  | 
| 9 |  | #include <string> | 
| 10 |  | #include <consensus/consensus.h> | 
| 11 |  | #include <primitives/transaction.h> | 
| 12 |  | #include <primitives/block.h> | 
| 13 |  |  | 
| 14 |  | /** Index marker for when no witness commitment is present in a coinbase transaction. */ | 
| 15 |  | static constexpr int NO_WITNESS_COMMITMENT{-1}; | 
| 16 |  |  | 
| 17 |  | /** Minimum size of a witness commitment structure. Defined in BIP 141. **/ | 
| 18 |  | static constexpr size_t MINIMUM_WITNESS_COMMITMENT{38}; | 
| 19 |  |  | 
| 20 |  | /** A "reason" why a transaction was invalid, suitable for determining whether the | 
| 21 |  |   * provider of the transaction should be banned/ignored/disconnected/etc. | 
| 22 |  |   */ | 
| 23 |  | enum class TxValidationResult { | 
| 24 |  |     TX_RESULT_UNSET = 0,     //!< initial value. Tx has not yet been rejected | 
| 25 |  |     TX_CONSENSUS,            //!< invalid by consensus rules | 
| 26 |  |     TX_INPUTS_NOT_STANDARD,   //!< inputs (covered by txid) failed policy rules | 
| 27 |  |     TX_NOT_STANDARD,          //!< otherwise didn't meet our local policy rules | 
| 28 |  |     TX_MISSING_INPUTS,        //!< transaction was missing some of its inputs | 
| 29 |  |     TX_PREMATURE_SPEND,       //!< transaction spends a coinbase too early, or violates locktime/sequence locks | 
| 30 |  |     /** | 
| 31 |  |      * Transaction might have a witness prior to SegWit | 
| 32 |  |      * activation, or witness may have been malleated (which includes | 
| 33 |  |      * non-standard witnesses). | 
| 34 |  |      */ | 
| 35 |  |     TX_WITNESS_MUTATED, | 
| 36 |  |     /** | 
| 37 |  |      * Transaction is missing a witness. | 
| 38 |  |      */ | 
| 39 |  |     TX_WITNESS_STRIPPED, | 
| 40 |  |     /** | 
| 41 |  |      * Tx already in mempool or conflicts with a tx in the chain | 
| 42 |  |      * (if it conflicts with another tx in mempool, we use MEMPOOL_POLICY as it failed to reach the RBF threshold) | 
| 43 |  |      * Currently this is only used if the transaction already exists in the mempool or on chain. | 
| 44 |  |      */ | 
| 45 |  |     TX_CONFLICT, | 
| 46 |  |     TX_MEMPOOL_POLICY,        //!< violated mempool's fee/size/descendant/RBF/etc limits | 
| 47 |  |     TX_NO_MEMPOOL,            //!< this node does not have a mempool so can't validate the transaction | 
| 48 |  |     TX_RECONSIDERABLE,        //!< fails some policy, but might be acceptable if submitted in a (different) package | 
| 49 |  |     TX_UNKNOWN,               //!< transaction was not validated because package failed | 
| 50 |  | }; | 
| 51 |  |  | 
| 52 |  | /** A "reason" why a block was invalid, suitable for determining whether the | 
| 53 |  |   * provider of the block should be banned/ignored/disconnected/etc. | 
| 54 |  |   * These are much more granular than the rejection codes, which may be more | 
| 55 |  |   * useful for some other use-cases. | 
| 56 |  |   */ | 
| 57 |  | enum class BlockValidationResult { | 
| 58 |  |     BLOCK_RESULT_UNSET = 0,  //!< initial value. Block has not yet been rejected | 
| 59 |  |     BLOCK_CONSENSUS,         //!< invalid by consensus rules (excluding any below reasons) | 
| 60 |  |     BLOCK_CACHED_INVALID,    //!< this block was cached as being invalid and we didn't store the reason why | 
| 61 |  |     BLOCK_INVALID_HEADER,    //!< invalid proof of work or time too old | 
| 62 |  |     BLOCK_MUTATED,           //!< the block's data didn't match the data committed to by the PoW | 
| 63 |  |     BLOCK_MISSING_PREV,      //!< We don't have the previous block the checked one is built on | 
| 64 |  |     BLOCK_INVALID_PREV,      //!< A block this one builds on is invalid | 
| 65 |  |     BLOCK_TIME_FUTURE,       //!< block timestamp was > 2 hours in the future (or our clock is bad) | 
| 66 |  |     BLOCK_HEADER_LOW_WORK    //!< the block header may be on a too-little-work chain | 
| 67 |  | }; | 
| 68 |  |  | 
| 69 |  |  | 
| 70 |  |  | 
| 71 |  | /** Template for capturing information about block/transaction validation. This is instantiated | 
| 72 |  |  *  by TxValidationState and BlockValidationState for validation information on transactions | 
| 73 |  |  *  and blocks respectively. */ | 
| 74 |  | template <typename Result> | 
| 75 |  | class ValidationState | 
| 76 |  | { | 
| 77 |  | private: | 
| 78 |  |     enum class ModeState { | 
| 79 |  |         M_VALID,   //!< everything ok | 
| 80 |  |         M_INVALID, //!< network rule violation (DoS value may be set) | 
| 81 |  |         M_ERROR,   //!< run-time error | 
| 82 |  |     } m_mode{ModeState::M_VALID}; | 
| 83 |  |     Result m_result{}; | 
| 84 |  |     std::string m_reject_reason; | 
| 85 |  |     std::string m_debug_message; | 
| 86 |  |  | 
| 87 |  | public: | 
| 88 |  |     bool Invalid(Result result, | 
| 89 |  |                  const std::string& reject_reason = "", | 
| 90 |  |                  const std::string& debug_message = "") | 
| 91 | 554k |     { | 
| 92 | 554k |         m_result = result; | 
| 93 | 554k |         m_reject_reason = reject_reason; | 
| 94 | 554k |         m_debug_message = debug_message; | 
| 95 | 554k |         if (m_mode != ModeState::M_ERROR) m_mode = ModeState::M_INVALID; | 
| 96 | 554k |         return false; | 
| 97 | 554k |     } _ZN15ValidationStateI18TxValidationResultE7InvalidES0_RKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_| Line | Count | Source |  | 91 | 230k |     { |  | 92 | 230k |         m_result = result; |  | 93 | 230k |         m_reject_reason = reject_reason; |  | 94 | 230k |         m_debug_message = debug_message; |  | 95 | 230k |         if (m_mode != ModeState::M_ERROR) m_mode = ModeState::M_INVALID; |  | 96 | 230k |         return false; |  | 97 | 230k |     } | 
Unexecuted instantiation: _ZN15ValidationStateI23PackageValidationResultE7InvalidES0_RKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA__ZN15ValidationStateI21BlockValidationResultE7InvalidES0_RKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_| Line | Count | Source |  | 91 | 323k |     { |  | 92 | 323k |         m_result = result; |  | 93 | 323k |         m_reject_reason = reject_reason; |  | 94 | 323k |         m_debug_message = debug_message; |  | 95 | 323k |         if (m_mode != ModeState::M_ERROR) m_mode = ModeState::M_INVALID; |  | 96 | 323k |         return false; |  | 97 | 323k |     } | 
 | 
| 98 |  |     bool Error(const std::string& reject_reason) | 
| 99 | 0 |     { | 
| 100 | 0 |         if (m_mode == ModeState::M_VALID) | 
| 101 | 0 |             m_reject_reason = reject_reason; | 
| 102 | 0 |         m_mode = ModeState::M_ERROR; | 
| 103 | 0 |         return false; | 
| 104 | 0 |     } | 
| 105 | 270k |     bool IsValid() const { return m_mode == ModeState::M_VALID; }_ZNK15ValidationStateI18TxValidationResultE7IsValidEv| Line | Count | Source |  | 105 | 80.2k |     bool IsValid() const { return m_mode == ModeState::M_VALID; } | 
_ZNK15ValidationStateI21BlockValidationResultE7IsValidEv| Line | Count | Source |  | 105 | 190k |     bool IsValid() const { return m_mode == ModeState::M_VALID; } | 
Unexecuted instantiation: _ZNK15ValidationStateI23PackageValidationResultE7IsValidEv | 
| 106 | 1.07M |     bool IsInvalid() const { return m_mode == ModeState::M_INVALID; }_ZNK15ValidationStateI21BlockValidationResultE9IsInvalidEv| Line | Count | Source |  | 106 | 352k |     bool IsInvalid() const { return m_mode == ModeState::M_INVALID; } | 
_ZNK15ValidationStateI18TxValidationResultE9IsInvalidEv| Line | Count | Source |  | 106 | 719k |     bool IsInvalid() const { return m_mode == ModeState::M_INVALID; } | 
Unexecuted instantiation: _ZNK15ValidationStateI23PackageValidationResultE9IsInvalidEv | 
| 107 | 0 |     bool IsError() const { return m_mode == ModeState::M_ERROR; } | 
| 108 | 1.69M |     Result GetResult() const { return m_result; }Unexecuted instantiation: _ZNK15ValidationStateI23PackageValidationResultE9GetResultEv_ZNK15ValidationStateI18TxValidationResultE9GetResultEv| Line | Count | Source |  | 108 | 1.36M |     Result GetResult() const { return m_result; } | 
_ZNK15ValidationStateI21BlockValidationResultE9GetResultEv| Line | Count | Source |  | 108 | 330k |     Result GetResult() const { return m_result; } | 
 | 
| 109 | 2.67k |     std::string GetRejectReason() const { return m_reject_reason; }Unexecuted instantiation: _ZNK15ValidationStateI21BlockValidationResultE15GetRejectReasonEv_ZNK15ValidationStateI18TxValidationResultE15GetRejectReasonEv| Line | Count | Source |  | 109 | 2.67k |     std::string GetRejectReason() const { return m_reject_reason; } | 
Unexecuted instantiation: _ZNK15ValidationStateI23PackageValidationResultE15GetRejectReasonEv | 
| 110 | 2.67k |     std::string GetDebugMessage() const { return m_debug_message; }Unexecuted instantiation: _ZNK15ValidationStateI21BlockValidationResultE15GetDebugMessageEv_ZNK15ValidationStateI18TxValidationResultE15GetDebugMessageEv| Line | Count | Source |  | 110 | 2.67k |     std::string GetDebugMessage() const { return m_debug_message; } | 
 | 
| 111 |  |     std::string ToString() const | 
| 112 | 8.31k |     { | 
| 113 | 8.31k |         if (IsValid()) { | 
| 114 | 0 |             return "Valid"; | 
| 115 | 0 |         } | 
| 116 |  |  | 
| 117 | 8.31k |         if (!m_debug_message.empty()) { | 
| 118 | 8.30k |             return m_reject_reason + ", " + m_debug_message; | 
| 119 | 8.30k |         } | 
| 120 |  |  | 
| 121 | 11 |         return m_reject_reason; | 
| 122 | 8.31k |     } _ZNK15ValidationStateI21BlockValidationResultE8ToStringEv| Line | Count | Source |  | 112 | 8.31k |     { |  | 113 | 8.31k |         if (IsValid()) { |  | 114 | 0 |             return "Valid"; |  | 115 | 0 |         } |  | 116 |  |  |  | 117 | 8.31k |         if (!m_debug_message.empty()) { |  | 118 | 8.30k |             return m_reject_reason + ", " + m_debug_message; |  | 119 | 8.30k |         } |  | 120 |  |  |  | 121 | 11 |         return m_reject_reason; |  | 122 | 8.31k |     } | 
Unexecuted instantiation: _ZNK15ValidationStateI23PackageValidationResultE8ToStringEvUnexecuted instantiation: _ZNK15ValidationStateI18TxValidationResultE8ToStringEv | 
| 123 |  | }; | 
| 124 |  |  | 
| 125 |  | class TxValidationState : public ValidationState<TxValidationResult> {}; | 
| 126 |  | class BlockValidationState : public ValidationState<BlockValidationResult> {}; | 
| 127 |  |  | 
| 128 |  | // These implement the weight = (stripped_size * 4) + witness_size formula, | 
| 129 |  | // using only serialization with and without witness data. As witness_size | 
| 130 |  | // is equal to total_size - stripped_size, this formula is identical to: | 
| 131 |  | // weight = (stripped_size * 3) + total_size. | 
| 132 |  | static inline int32_t GetTransactionWeight(const CTransaction& tx) | 
| 133 | 1.35M | { | 
| 134 | 1.35M |     return ::GetSerializeSize(TX_NO_WITNESS(tx)) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(TX_WITH_WITNESS(tx)); | 
| 135 | 1.35M | } Unexecuted instantiation: addition_overflow.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: addrman.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: autofile.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: banman.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: bip324.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: bitdeque.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: bitset.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: block.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: block_header.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: block_index.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: blockfilter.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: bloom_filter.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: buffered_file.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: chain.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: checkqueue.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: cmpctblock.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: coins_view.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: coinscache_sim.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: connman.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto_aes256.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto_aes256cbc.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto_chacha20.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto_chacha20poly1305.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto_common.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto_diff_fuzz_chacha20.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto_hkdf_hmac_sha256_l32.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypto_poly1305.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: cuckoocache.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: deserialize.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: feefrac.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: fee_rate.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: feeratediagram.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: fees.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: flatfile.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: float.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: golomb_rice.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: headerssync.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: http_request.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: i2p.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: integer.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: key.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: kitchen_sink.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: load_external_block_file.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: merkle.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: merkleblock.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: message.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: miniscript.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: minisketch.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: mini_miner.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: muhash.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: multiplication_overflow.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: net.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: net_permissions.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: netaddress.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: netbase_dns_lookup.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: node_eviction.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: p2p_handshake.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: p2p_headers_presync.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: p2p_transport_serialization.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: pcp.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: package_eval.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: parse_hd_keypath.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: partially_downloaded_block.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: policy_estimator.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: policy_estimator_io.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: poolresource.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: pow.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: primitives_transaction.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: process_message.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: process_messages.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: protocol.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: random.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: rbf.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: rolling_bloom_filter.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: rpc.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: script.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: script_descriptor_cache.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: script_format.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: script_interpreter.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: script_ops.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: script_sigcache.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: script_sign.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: scriptnum_ops.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: secp256k1_ec_seckey_import_export_der.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: secp256k1_ecdsa_signature_parse_der_lax.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: signature_checker.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: signet.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: socks5.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: span.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: string.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: strprintf.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: system.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: torcontrol.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: transaction.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: txdownloadman.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: tx_in.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: tx_out.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: tx_pool.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: txorphan.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: utxo_snapshot.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: utxo_total_supply.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: validation_load_mempool.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: vecdeque.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: versionbits.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: coincontrol.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: coinselection.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: crypter.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: scriptpubkeyman.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: spend.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: wallet_bdb_parser.cpp:_ZL20GetTransactionWeightRK12CTransactionmempool.cpp:_ZL20GetTransactionWeightRK12CTransaction| Line | Count | Source |  | 133 | 638k | { |  | 134 | 638k |     return ::GetSerializeSize(TX_NO_WITNESS(tx)) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(TX_WITH_WITNESS(tx)); |  | 135 | 638k | } | 
Unexecuted instantiation: threadinterrupt.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: util.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: core_write.cpp:_ZL20GetTransactionWeightRK12CTransactionpolicy.cpp:_ZL20GetTransactionWeightRK12CTransaction| Line | Count | Source |  | 133 | 719k | { |  | 134 | 719k |     return ::GetSerializeSize(TX_NO_WITNESS(tx)) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(TX_WITH_WITNESS(tx)); |  | 135 | 719k | } | 
Unexecuted instantiation: feebumper.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: transactions.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: wallet.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: mining.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: setup_common.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: transaction_utils.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: txmempool.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: validation.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: blockencodings.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: tx_verify.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: base.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: coinstatsindex.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: txindex.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: init.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: coinstats.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: net_processing.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: blockmanager_args.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: blockstorage.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: chainstate.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: chainstatemanager_args.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: coin.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: context.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: interfaces.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: mempool_persist.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: mempool_persist_args.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: miner.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: peerman_args.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: txdownloadman_impl.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: txorphanage.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: ephemeral_policy.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: packages.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: truc_policy.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: rest.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: blockchain.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: rawtransaction.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: server.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: server_util.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: txoutproof.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: validationinterface.cpp:_ZL20GetTransactionWeightRK12CTransactionUnexecuted instantiation: tx_check.cpp:_ZL20GetTransactionWeightRK12CTransaction | 
| 136 |  | static inline int64_t GetBlockWeight(const CBlock& block) | 
| 137 | 28.2k | { | 
| 138 | 28.2k |     return ::GetSerializeSize(TX_NO_WITNESS(block)) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(TX_WITH_WITNESS(block)); | 
| 139 | 28.2k | } Unexecuted instantiation: addition_overflow.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: addrman.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: autofile.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: banman.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: bip324.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: bitdeque.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: bitset.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: block.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: block_header.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: block_index.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: blockfilter.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: bloom_filter.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: buffered_file.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: chain.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: checkqueue.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: cmpctblock.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: coins_view.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: coinscache_sim.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: connman.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto_aes256.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto_aes256cbc.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto_chacha20.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto_chacha20poly1305.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto_common.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto_diff_fuzz_chacha20.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto_hkdf_hmac_sha256_l32.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypto_poly1305.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: cuckoocache.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: deserialize.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: feefrac.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: fee_rate.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: feeratediagram.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: fees.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: flatfile.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: float.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: golomb_rice.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: headerssync.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: http_request.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: i2p.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: integer.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: key.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: kitchen_sink.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: load_external_block_file.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: merkle.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: merkleblock.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: message.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: miniscript.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: minisketch.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: mini_miner.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: muhash.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: multiplication_overflow.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: net.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: net_permissions.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: netaddress.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: netbase_dns_lookup.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: node_eviction.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: p2p_handshake.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: p2p_headers_presync.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: p2p_transport_serialization.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: pcp.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: package_eval.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: parse_hd_keypath.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: partially_downloaded_block.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: policy_estimator.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: policy_estimator_io.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: poolresource.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: pow.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: primitives_transaction.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: process_message.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: process_messages.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: protocol.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: random.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: rbf.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: rolling_bloom_filter.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: rpc.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: script.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: script_descriptor_cache.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: script_format.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: script_interpreter.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: script_ops.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: script_sigcache.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: script_sign.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: scriptnum_ops.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: secp256k1_ec_seckey_import_export_der.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: secp256k1_ecdsa_signature_parse_der_lax.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: signature_checker.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: signet.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: socks5.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: span.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: string.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: strprintf.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: system.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: torcontrol.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: transaction.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: txdownloadman.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: tx_in.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: tx_out.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: tx_pool.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: txorphan.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: utxo_snapshot.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: utxo_total_supply.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: validation_load_mempool.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: vecdeque.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: versionbits.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: coincontrol.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: coinselection.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: crypter.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: scriptpubkeyman.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: spend.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: wallet_bdb_parser.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: mempool.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: threadinterrupt.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: util.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: core_write.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: policy.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: feebumper.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: transactions.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: wallet.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: mining.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: setup_common.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: transaction_utils.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: txmempool.cpp:_ZL14GetBlockWeightRK6CBlockvalidation.cpp:_ZL14GetBlockWeightRK6CBlock| Line | Count | Source |  | 137 | 28.2k | { |  | 138 | 28.2k |     return ::GetSerializeSize(TX_NO_WITNESS(block)) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(TX_WITH_WITNESS(block)); |  | 139 | 28.2k | } | 
Unexecuted instantiation: blockencodings.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: tx_verify.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: base.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: coinstatsindex.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: txindex.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: init.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: coinstats.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: net_processing.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: blockmanager_args.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: blockstorage.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: chainstate.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: chainstatemanager_args.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: coin.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: context.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: interfaces.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: mempool_persist.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: mempool_persist_args.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: miner.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: peerman_args.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: txdownloadman_impl.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: txorphanage.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: ephemeral_policy.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: packages.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: truc_policy.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: rest.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: blockchain.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: rawtransaction.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: server.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: server_util.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: txoutproof.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: validationinterface.cpp:_ZL14GetBlockWeightRK6CBlockUnexecuted instantiation: tx_check.cpp:_ZL14GetBlockWeightRK6CBlock | 
| 140 |  | static inline int64_t GetTransactionInputWeight(const CTxIn& txin) | 
| 141 | 0 | { | 
| 142 |  |     // scriptWitness size is added here because witnesses and txins are split up in segwit serialization. | 
| 143 | 0 |     return ::GetSerializeSize(TX_NO_WITNESS(txin)) * (WITNESS_SCALE_FACTOR - 1) + ::GetSerializeSize(TX_WITH_WITNESS(txin)) + ::GetSerializeSize(txin.scriptWitness.stack); | 
| 144 | 0 | } Unexecuted instantiation: addition_overflow.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: addrman.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: autofile.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: banman.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: bip324.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: bitdeque.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: bitset.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: block.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: block_header.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: block_index.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: blockfilter.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: bloom_filter.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: buffered_file.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: chain.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: checkqueue.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: cmpctblock.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: coins_view.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: coinscache_sim.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: connman.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto_aes256.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto_aes256cbc.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto_chacha20.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto_chacha20poly1305.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto_common.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto_diff_fuzz_chacha20.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto_hkdf_hmac_sha256_l32.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypto_poly1305.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: cuckoocache.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: deserialize.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: feefrac.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: fee_rate.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: feeratediagram.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: fees.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: flatfile.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: float.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: golomb_rice.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: headerssync.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: http_request.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: i2p.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: integer.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: key.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: kitchen_sink.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: load_external_block_file.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: merkle.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: merkleblock.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: message.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: miniscript.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: minisketch.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: mini_miner.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: muhash.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: multiplication_overflow.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: net.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: net_permissions.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: netaddress.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: netbase_dns_lookup.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: node_eviction.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: p2p_handshake.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: p2p_headers_presync.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: p2p_transport_serialization.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: pcp.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: package_eval.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: parse_hd_keypath.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: partially_downloaded_block.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: policy_estimator.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: policy_estimator_io.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: poolresource.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: pow.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: primitives_transaction.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: process_message.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: process_messages.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: protocol.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: random.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: rbf.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: rolling_bloom_filter.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: rpc.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: script.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: script_descriptor_cache.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: script_format.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: script_interpreter.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: script_ops.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: script_sigcache.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: script_sign.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: scriptnum_ops.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: secp256k1_ec_seckey_import_export_der.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: secp256k1_ecdsa_signature_parse_der_lax.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: signature_checker.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: signet.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: socks5.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: span.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: string.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: strprintf.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: system.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: torcontrol.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: transaction.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: txdownloadman.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: tx_in.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: tx_out.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: tx_pool.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: txorphan.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: utxo_snapshot.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: utxo_total_supply.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: validation_load_mempool.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: vecdeque.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: versionbits.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: coincontrol.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: coinselection.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: crypter.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: scriptpubkeyman.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: spend.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: wallet_bdb_parser.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: mempool.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: threadinterrupt.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: util.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: core_write.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: policy.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: feebumper.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: transactions.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: wallet.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: mining.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: setup_common.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: transaction_utils.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: txmempool.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: validation.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: blockencodings.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: tx_verify.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: base.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: coinstatsindex.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: txindex.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: init.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: coinstats.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: net_processing.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: blockmanager_args.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: blockstorage.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: chainstate.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: chainstatemanager_args.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: coin.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: context.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: interfaces.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: mempool_persist.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: mempool_persist_args.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: miner.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: peerman_args.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: txdownloadman_impl.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: txorphanage.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: ephemeral_policy.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: packages.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: truc_policy.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: rest.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: blockchain.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: rawtransaction.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: server.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: server_util.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: txoutproof.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: validationinterface.cpp:_ZL25GetTransactionInputWeightRK5CTxInUnexecuted instantiation: tx_check.cpp:_ZL25GetTransactionInputWeightRK5CTxIn | 
| 145 |  |  | 
| 146 |  | /** Compute at which vout of the block's coinbase transaction the witness commitment occurs, or -1 if not found */ | 
| 147 |  | inline int GetWitnessCommitmentIndex(const CBlock& block) | 
| 148 | 4.04M | { | 
| 149 | 4.04M |     int commitpos = NO_WITNESS_COMMITMENT; | 
| 150 | 4.04M |     if (!block.vtx.empty()) { | 
| 151 | 10.1M |         for (size_t o = 0; o < block.vtx[0]->vout.size(); o++6.07M) { | 
| 152 | 6.07M |             const CTxOut& vout = block.vtx[0]->vout[o]; | 
| 153 | 6.07M |             if (vout.scriptPubKey.size() >= MINIMUM_WITNESS_COMMITMENT && | 
| 154 | 6.07M |                 vout.scriptPubKey[0] == OP_RETURN2.03M&& | 
| 155 | 6.07M |                 vout.scriptPubKey[1] == 0x242.03M&& | 
| 156 | 6.07M |                 vout.scriptPubKey[2] == 0xaa2.03M&& | 
| 157 | 6.07M |                 vout.scriptPubKey[3] == 0x212.03M&& | 
| 158 | 6.07M |                 vout.scriptPubKey[4] == 0xa92.03M&& | 
| 159 | 6.07M |                 vout.scriptPubKey[5] == 0xed2.03M) { | 
| 160 | 2.03M |                 commitpos = o; | 
| 161 | 2.03M |             } | 
| 162 | 6.07M |         } | 
| 163 | 4.04M |     } | 
| 164 | 4.04M |     return commitpos; | 
| 165 | 4.04M | } | 
| 166 |  |  | 
| 167 |  | #endif // BITCOIN_CONSENSUS_VALIDATION_H |