Repository Analysis

bitcoin/bitcoin

Bitcoin Core integration/staging tree

3.1 Likely human-written View on GitHub
3.1
Adjusted Score
3.1
Raw Score
100%
Time Factor
2026-05-29
Last Push
89,218
Stars
C++
Language
837,677
Lines of Code
2386
Files
2215
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 13MEDIUM 159LOW 2043

Pattern Findings

2215 matches across 15 categories. Click a row to expand file-level details.

Over-Commented Block1359 hits · 1358 pts
SeverityFileLineSnippet
LOWtest/lint/lint-locale-dependence.py1#!/usr/bin/env python3
LOWtest/lint/lint-locale-dependence.py21#
LOWtest/lint/test_runner/src/util.rs1// Copyright (c) The Bitcoin Core developers
LOWtest/functional/mempool_packages.py241
LOWtest/functional/wallet_fundrawtransaction.py1121 self.nodes[0].sendtoaddress(addr1, 5, fee_rate=self.fee_rate_sats_per_vb)
LOWtest/functional/wallet_fundrawtransaction.py1261 "fee_rate": self.fee_rate_sats_per_vb
LOWtest/functional/wallet_migration.py1281
LOWtest/functional/mempool_package_limits.py1#!/usr/bin/env python3
LOWtest/functional/feature_taproot.py121# Whether or not to output generated test vectors, in JSON format.
LOWtest/functional/feature_taproot.py141#
LOWtest/functional/feature_taproot.py441 "script_witv0": None,
LOWtest/functional/feature_taproot.py701 # == Test involving an internal public key not on the curve ==
LOWtest/functional/wallet_groups.py81
LOWtest/functional/wallet_resendwallettransactions.py81 # Tell scheduler to call MaybeResendWalletTxs now.
LOWtest/functional/mining_basic.py101 # Generate three transactions that must be mined in sequence
LOWtest/functional/test_runner.py481 # in the ALL_SCRIPTS list. Accept names with or without a .py extension.
LOWtest/functional/feature_pruning.py381 self.stop_node(3)
LOWtest/functional/feature_pruning.py401 # repeat this process until you have 12 stale forks hanging off the
LOWtest/functional/feature_pruning.py421 #
LOWtest/functional/feature_pruning.py441 #
LOWtest/functional/rpc_decodescript.py121 # OP_NOP2 is also known as OP_CHECKLOCKTIMEVERIFY.
LOWtest/functional/feature_bind_port_discover.py21# interface that is UP and not a loopback interface (IFF_LOOPBACK). To set these
LOWtest/functional/feature_block.py481 b37 = self.update_block(37, [tx])
LOWtest/functional/feature_block.py741
LOWtest/functional/feature_block.py901
LOWtest/functional/feature_block.py1001 tx2 = self.create_and_sign_transaction(tx1, 1)
LOWtest/functional/feature_block.py1081 #
LOWtest/functional/wallet_balance.py101 # First argument of getbalance must be set to "*"
LOWtest/functional/wallet_balance.py121 #
LOWtest/functional/feature_cltv.py41 tx.vin[0].nSequence = nsequence
LOWtest/functional/test_framework/script_util.py41 assert_equal,
LOWtest/functional/test_framework/authproxy.py1# Copyright (c) 2011 Jeff Garzik
LOWtest/functional/test_framework/test_framework.py361 def setup_network(self):
LOWtest/functional/test_framework/script.py901
LOWtest/functional/test_framework/test_node.py361 self.wait_until(lambda: rpc.getmempoolinfo()['loaded'])
LOWtest/functional/test_framework/test_node.py841 if send_version:
LOWci/test/00_setup_env.sh1#!/usr/bin/env bash
LOWcontrib/tracing/log_raw_p2p_msgs.py1#!/usr/bin/env python3
LOWcontrib/tracing/log_raw_p2p_msgs.py21# VM's stack is limited to 512 bytes, and we can't allocate more than about 32kb
LOWcontrib/tracing/log_raw_p2p_msgs.py41program = """
LOWcontrib/tracing/p2p_monitor.py1#!/usr/bin/env python3
LOWcontrib/qos/tc.sh1#!/usr/bin/env bash
LOWcontrib/qos/tc.sh41
LOWcontrib/asmap/asmap.py161 # of failure the default instruction's argument is returned. It is followed by an
LOWcontrib/linearize/example-linearize.cfg21
LOWcontrib/verify-commits/gpg.sh1#!/bin/sh
LOWcontrib/devtools/headerssync-params.py21MINCHAINWORK_HEADERS = 938343
LOWcontrib/devtools/headerssync-params.py41# Explanation:
LOWcontrib/devtools/headerssync-params.py61# - When redownloading, headers are fed through a per-peer queue that holds {bufsize} headers,
LOWcontrib/devtools/headerssync-params.py81# threshold, we will consume per-peer memory that is sufficient to store {n/period}
LOWcontrib/devtools/headerssync-params.py161 max_rate = None
LOWcontrib/guix/symbol-check.py21# Ubuntu 20.04 (Focal) EOL: 2030. https://wiki.ubuntu.com/ReleaseTeam
LOWcontrib/guix/libexec/build.sh1#!/usr/bin/env bash
LOWcontrib/guix/libexec/codesign.sh1#!/usr/bin/env bash
LOW.github/workflows/ci.yml81 # are generally draft pull requests that merge in other
LOWsrc/chain.h1// Copyright (c) 2009-2010 Satoshi Nakamoto
LOWsrc/chain.h121 //! reached the VALID_TRANSACTIONS level, and zero otherwise.
LOWsrc/psbt.cpp1// Copyright (c) 2009-present The Bitcoin Core developers
LOWsrc/protocol.h1// Copyright (c) 2009-2010 Satoshi Nakamoto
LOWsrc/protocol.h321 // NODE_COMPACT_FILTERS means the node will service basic block filter requests.
1299 more matches not shown…
Hyper-Verbose Identifiers515 hits · 513 pts
SeverityFileLineSnippet
LOWtest/lint/lint-includes.py101def find_quote_syntax_inclusions():
LOWtest/lint/lint-tests.py16def grep_boost_fixture_test_suite():
LOWtest/lint/lint-tests.py30def check_matching_test_names(test_suite_list):
LOWtest/lint/lint-locale-dependence.py212def find_locale_dependent_function_uses():
LOWtest/lint/lint-files.py123def check_all_file_permissions(files) -> int:
LOWtest/lint/lint-files.py168def check_shebang_file_permissions(files_meta) -> int:
LOWtest/lint/check-doc.py27def lint_missing_argument_documentation():
LOWtest/lint/check-doc.py46def lint_missing_hidden_wallet_args():
LOWtest/fuzz/test_runner.py204def transform_process_message_target(targets, src_dir):
LOWtest/functional/rpc_signer.py36 def skip_test_if_missing_module(self):
LOWtest/functional/tool_bitcoin_chainstate.py27 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_backwards_compatibility.py51 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_backwards_compatibility.py162 def test_ignore_legacy_during_startup(self, legacy_nodes, node_master):
LOWtest/functional/wallet_listreceivedby.py24 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_startup.py28 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_startup.py46 def test_load_unwritable_wallet(self, node):
LOWtest/functional/wallet_change_address.py27 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_sendmany.py12 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_sendmany.py19 def test_sffo_repeated_address(self):
LOWtest/functional/wallet_keypool_topup.py30 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_reorgsrestore.py31 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_reorgsrestore.py34 def test_coinbase_automatic_abandon_during_startup(self):
LOWtest/functional/wallet_reorgsrestore.py93 def test_reorg_handling_during_unclean_shutdown(self):
LOWtest/functional/mempool_limit.py35 def test_mid_package_eviction_success(self):
LOWtest/functional/mempool_limit.py128 def test_mid_package_replacement(self):
LOWtest/functional/interface_ipc.py26 def skip_test_if_missing_module(self):
LOWtest/functional/interface_ipc.py71 def run_deprecated_mining_test(self):
LOWtest/functional/interface_ipc.py86 def run_unclean_disconnect_test(self):
LOWtest/functional/wallet_assumeutxo.py28 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_assumeutxo.py69 def complete_background_validation(self, node):
LOWtest/functional/wallet_assumeutxo.py79 def test_backup_during_background_sync_pruned_node(self, n3, dump_output, expected_error_message):
LOWtest/functional/wallet_assumeutxo.py92 def test_restore_wallet_pruneheight(self, n3):
LOWtest/functional/wallet_gethdkeys.py23 def skip_test_if_missing_module(self):
LOWtest/functional/mempool_datacarrier.py37 def test_null_data_transaction(self, node: TestNode, data, success: bool) -> None:
LOWtest/functional/rpc_help.py68 def test_client_conversion_table(self):
LOWtest/functional/rpc_help.py99 def test_client_string_conversion_table(self):
LOWtest/functional/wallet_orphanedreward.py15 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_musig.py29 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_musig.py33 def create_wallets_and_keys_from_pattern(self, pat):
LOWtest/functional/wallet_musig.py70 def construct_and_import_musig_descriptor_in_wallets(self, pat, wallets, keys, only_one_musig_wallet=False):
LOWtest/functional/p2p_leak_tx.py67 def test_notfound_on_replaced_tx(self):
LOWtest/functional/p2p_leak_tx.py100 def test_notfound_on_unannounced_tx(self):
LOWtest/functional/wallet_anchor.py31 def skip_test_if_missing_module(self):
LOWtest/functional/wallet_simulaterawtx.py22 def skip_test_if_missing_module(self):
LOWtest/functional/feature_notifications.py209 def large_work_invalid_chain_warning_in_alert_file(self):
LOWtest/functional/feature_maxuploadtarget.py55 def assert_uploadtarget_state(self, *, target_reached, serve_historical_blocks):
LOWtest/functional/p2p_handshake.py49 def test_desirable_service_flags(self, node, service_flag_tests, desirable_service_flags, expect_disconnect):
LOWtest/functional/wallet_basic.py40 def skip_test_if_missing_module(self):
LOWtest/functional/p2p_invalid_messages.py103 def test_duplicate_version_msg(self):
LOWtest/functional/p2p_invalid_messages.py272 def test_oversized_getdata_msg(self):
LOWtest/functional/p2p_invalid_messages.py276 def test_oversized_headers_msg(self):
LOWtest/functional/p2p_invalid_messages.py280 def test_invalid_pow_headers_msg(self):
LOWtest/functional/p2p_invalid_messages.py307 def test_noncontinuous_headers_msg(self):
LOWtest/functional/example_test.py96 def skip_test_if_missing_module(self):
LOWtest/functional/feature_reindex.py81 def continue_reindex_after_shutdown(self):
LOWtest/functional/rpc_packages.py329 def assert_equal_package_results(self, node, testmempoolaccept_result, submitpackage_result):
LOWtest/functional/rpc_packages.py347 def test_submit_child_with_parents(self, num_parents, partial_submit):
LOWtest/functional/rpc_packages.py432 def test_maxfeerate_submitpackage(self):
LOWtest/functional/rpc_packages.py488 def test_maxburn_submitpackage(self):
LOWtest/functional/rpc_packages.py515 def test_submitpackage_with_ancestors(self):
455 more matches not shown…
Self-Referential Comments97 hits · 300 pts
SeverityFileLineSnippet
MEDIUMtest/functional/wallet_backwards_compatibility.py209 # Create a number of wallets and open them in older versions:
MEDIUMtest/functional/wallet_backwards_compatibility.py218 # Create a confirmed transaction, receiving coins
MEDIUMtest/functional/wallet_backwards_compatibility.py223 # Create a conflicting transaction using RBF
MEDIUMtest/functional/wallet_listreceivedby.py172 # Create a new label named "mynewlabel" that has a 0 balance
MEDIUMtest/functional/wallet_reorgsrestore.py48 # Create a new block in node0, coinbase going to wallet0
MEDIUMtest/functional/wallet_reorgsrestore.py172 # Create a conflicted tx broadcast on node0 chain and conflicting tx broadcast on node1 chain. Both spend from t
MEDIUMtest/functional/mempool_limit.py87 # Create a child spending everything with an insane fee, bumping the package above mempool_entry_minrate
MEDIUMtest/functional/mempool_limit.py171 # Create a child spending everything, CPFPing the low-feerate parent.
MEDIUMtest/functional/wallet_assumeutxo.py129 # Create a wallet that we will create a backup for later (at snapshot height)
MEDIUMtest/functional/wallet_anchor.py37 # Create an anchor output, and spend it
MEDIUMtest/functional/wallet_basic.py211 # Create a couple of transactions to send them to node2, submit them through
MEDIUMtest/functional/feature_assumevalid.py92 # Create the first block with a coinbase output to our key
MEDIUMtest/functional/feature_assumevalid.py112 # Create a transaction spending the coinbase output with an invalid (null) signature
MEDIUMtest/functional/rpc_packages.py416 # Create a transaction chain such as only the parent gets accepted (by making the child's
MEDIUMtest/functional/wallet_rescan_unconfirmed.py46 # Create an unconfirmed child transaction from the parent tx, sending all
MEDIUMtest/functional/wallet_bumpfee.py203 # Create a tx with two outputs. recipient and change.
MEDIUMtest/functional/wallet_bumpfee.py350 # Create a transaction with segwit output, then create an RBF transaction
MEDIUMtest/functional/wallet_bumpfee.py553 # Create a wallet with private keys that can sign PSBTs
MEDIUMtest/functional/interface_rest.py174 # Create a transaction, check that it's found with /checkmempool, but
MEDIUMtest/functional/wallet_listsinceblock.py421 # Create a watchonly wallet tracking two multisig descriptors.
MEDIUMtest/functional/wallet_listsinceblock.py459 # Create a UTxO paying to one of our change addresses.
MEDIUMtest/functional/wallet_fundrawtransaction.py1493 # Create a replacement tx to 'final_tx1' that has 1 BTC target instead of 0.1.
MEDIUMtest/functional/feature_bip68_sequence.py220 # Create a mempool tx.
MEDIUMtest/functional/feature_bip68_sequence.py235 # Create a spend of the 0th output of orig_tx with a sequence lock
MEDIUMtest/functional/p2p_compactblocks.py412 # Create a chain of transactions from given utxo, and add to a new block.
MEDIUMtest/functional/wallet_migration.py1329 # Create a wsh(sh(pkh())) - P2SH inside of P2WSH is invalid
MEDIUMtest/functional/wallet_migration.py1339 # Create a wsh(wsh(pkh())) - P2WSH inside of P2WSH is invalid
MEDIUMtest/functional/mempool_updatefromblock.py77 # Create a new transaction.
MEDIUMtest/functional/feature_taproot.py1335 # Create a list of scripts which will be built into a taptree
MEDIUMtest/functional/mempool_persist.py108 # Create a tx and prioritise but don't submit until after the restart.
MEDIUMtest/functional/feature_segwit.py237 # Create a 3-tx chain: tx1 (non-segwit input, paying to a segwit output) ->
MEDIUMtest/functional/wallet_abandonconflict.py82 #Create a child tx spending AB1 and C
MEDIUMtest/functional/wallet_abandonconflict.py91 # Create a child tx spending ABC2
MEDIUMtest/functional/wallet_abandonconflict.py175 # Create a double spend of AB1 by spending again from only A's 10 output
MEDIUMtest/functional/feature_utxo_set_hash.py36 # Create a spending transaction and mine a block which includes it
MEDIUMtest/functional/rpc_psbt.py825 # Create a psbt spending outputs from nodes 1 and 2
MEDIUMtest/functional/rpc_psbt.py1032 # Create a PSBT. None of the inputs are filled initially
MEDIUMtest/functional/rpc_signrawtransactionwithkey.py77 # Create a new P2SH-P2WSH 1-of-1 multisig address:
MEDIUMtest/functional/feature_assumeutxo.py268 # Create an alternative chain of 2 new blocks, forking off the main chain at the block before the snapshot block
MEDIUMtest/functional/feature_assumeutxo.py427 # Create a stale block that forks off the main chain before the snapshot.
MEDIUMtest/functional/p2p_1p1c_network.py107 # Create the transactions.
MEDIUMtest/functional/p2p_invalid_block.py121 # Create a block that spends the output of a tx in a previous block.
MEDIUMtest/functional/feature_config_args.py191 # Create a temporary directory that will be treated as the default data
MEDIUMtest/functional/feature_config_args.py463 # Create a temporary directory that will be treated as the default data
MEDIUMtest/functional/feature_config_args.py561 # Create the directory and ensure the config file now works
MEDIUMtest/functional/rpc_net.py104 # Create a few getpeerinfo last_block/last_transaction values.
MEDIUMtest/functional/p2p_segwit.py310 # Create a transaction that spends the coinbase
MEDIUMtest/functional/p2p_segwit.py624 # Create the same output as tx3, but by replacing tx
MEDIUMtest/functional/p2p_segwit.py890 # Create a P2WSH transaction.
MEDIUMtest/functional/p2p_segwit.py1145 # Create a transaction that splits our utxo into many outputs
MEDIUMtest/functional/p2p_segwit.py1616 # Create a slight bias for producing more utxos
MEDIUMtest/functional/p2p_segwit.py1718 # Create a p2sh output -- this is so we can pass the standardness
MEDIUMtest/functional/p2p_segwit.py2001 # Create a Segwit output from the latest UTXO
MEDIUMtest/functional/p2p_segwit.py2010 # Create a Segwit transaction
MEDIUMtest/functional/mempool_cluster.py132 # Create a package from the second to last transaction.
MEDIUMtest/functional/mempool_cluster.py199 # Create a chain of transactions
MEDIUMtest/functional/mempool_cluster.py259 # Create a transaction spending from all clusters that exceeds the cluster size limit.
MEDIUMtest/functional/p2p_private_broadcast.py226 # Create a Python P2P listening node and instruct the SOCKS5 proxy to
MEDIUMtest/functional/wallet_avoidreuse.py124 # Create a wallet with avoid reuse, and test that disabling it afterwards persists
MEDIUMtest/functional/wallet_avoidreuse.py144 # Create a wallet with disable_private_keys set; this should work
37 more matches not shown…
Decorative Section Separators44 hits · 159 pts
SeverityFileLineSnippet
MEDIUMCMakeLists.txt26#=============================
MEDIUMCMakeLists.txt28#=============================
MEDIUMCMakeLists.txt69#=============================
MEDIUMCMakeLists.txt71#=============================
MEDIUMCMakeLists.txt98#=============================
MEDIUMCMakeLists.txt100#=============================
MEDIUMCMakeLists.txt154#=============================
MEDIUMCMakeLists.txt156#=============================
MEDIUMCMakeLists.txt168#=============================
MEDIUMCMakeLists.txt170#=============================
MEDIUMCMakeLists.txt203#=============================
MEDIUMCMakeLists.txt205#=============================
MEDIUMCMakeLists.txt212#=============================
MEDIUMCMakeLists.txt214#=============================
MEDIUMtest/functional/wallet_conflicts.py67 # ----------------
MEDIUMtest/functional/feature_assumeutxo.py720 # -----------------------------
MEDIUMsrc/CMakeLists.txt10#=============================
MEDIUMsrc/CMakeLists.txt12#=============================
MEDIUMsrc/secp256k1/CMakeLists.txt3#=============================
MEDIUMsrc/secp256k1/CMakeLists.txt5#=============================
MEDIUMsrc/secp256k1/CMakeLists.txt28#=============================
MEDIUMsrc/secp256k1/CMakeLists.txt30#=============================
MEDIUMsrc/secp256k1/CMakeLists.txt34#=============================
MEDIUMsrc/secp256k1/CMakeLists.txt36#=============================
MEDIUMsrc/minisketch/CMakeLists.txt3#=============================
MEDIUMsrc/minisketch/CMakeLists.txt5#=============================
MEDIUMsrc/minisketch/CMakeLists.txt13# ============================================================
MEDIUMsrc/minisketch/CMakeLists.txt15# ============================================================
MEDIUMsrc/minisketch/CMakeLists.txt34#=============================
MEDIUMsrc/minisketch/CMakeLists.txt36#=============================
MEDIUMsrc/minisketch/CMakeLists.txt49#=============================
MEDIUMsrc/minisketch/CMakeLists.txt51#=============================
MEDIUMsrc/minisketch/CMakeLists.txt83#=============================
MEDIUMsrc/minisketch/CMakeLists.txt85#=============================
MEDIUMsrc/minisketch/CMakeLists.txt96#=============================
MEDIUMsrc/minisketch/CMakeLists.txt98#=============================
MEDIUMsrc/minisketch/CMakeLists.txt115#=============================
MEDIUMsrc/minisketch/CMakeLists.txt117#=============================
MEDIUMsrc/node/mini_miner.cpp337 // ┌─────────────────┐
MEDIUMsrc/node/mini_miner.cpp344 // └──────▲───▲──────┘ P2_ASFR: 2.47 s/vB
MEDIUMsrc/node/mini_miner.cpp346 // ┌───────────────┐ │ │ ┌──────────────┐
MEDIUMsrc/node/mini_miner.cpp353 // └───────────▲───┘ └───▲──────────┘
MEDIUMsrc/node/mini_miner.cpp355 // │ ┌───────────┐ │
MEDIUMsrc/node/mini_miner.cpp362 // └───────────┘
Deep Nesting94 hits · 94 pts
SeverityFileLineSnippet
LOWtest/download_utils.py12
LOWtest/get_previous_releases.py107
LOWtest/lint/lint-files.py123
LOWtest/lint/lint-files.py168
LOWtest/functional/combine_logs.py103
LOWtest/functional/combine_logs.py145
LOWtest/functional/wallet_backwards_compatibility.py88
LOWtest/functional/wallet_backwards_compatibility.py194
LOWtest/functional/wallet_keypool_topup.py33
LOWtest/functional/wallet_gethdkeys.py78
LOWtest/functional/wallet_gethdkeys.py132
LOWtest/functional/rpc_help.py20
LOWtest/functional/wallet_musig.py33
LOWtest/functional/wallet_musig.py171
LOWtest/functional/p2p_v2_misbehaving.py104
LOWtest/functional/p2p_v2_misbehaving.py159
LOWtest/functional/wallet_address_types.py98
LOWtest/functional/wallet_address_types.py157
LOWtest/functional/wallet_address_types.py224
LOWtest/functional/wallet_fundrawtransaction.py66
LOWtest/functional/feature_bip68_sequence.py129
LOWtest/functional/mempool_updatefromblock.py33
LOWtest/functional/feature_taproot.py510
LOWtest/functional/feature_taproot.py677
LOWtest/functional/feature_taproot.py1451
LOWtest/functional/feature_taproot.py1653
LOWtest/functional/feature_taproot.py1774
LOWtest/functional/feature_utxo_set_hash.py22
LOWtest/functional/wallet_transactiontime_rescan.py31
LOWtest/functional/rpc_psbt.py535
LOWtest/functional/interface_bitcoin_cli.py42
LOWtest/functional/p2p_private_broadcast.py358
LOWtest/functional/p2p_private_broadcast.py408
LOWtest/functional/interface_usdt_coinselection.py139
LOWtest/functional/wallet_send.py40
LOWtest/functional/test_runner.py406
LOWtest/functional/test_runner.py583
LOWtest/functional/test_runner.py756
LOWtest/functional/p2p_tx_download.py384
LOWtest/functional/wallet_taproot.py308
LOWtest/functional/feature_reindex_readonly.py22
LOWtest/functional/p2p_disconnect_ban.py19
LOWtest/functional/interface_zmq.py139
LOWtest/functional/interface_zmq.py457
LOWtest/functional/feature_torcontrol.py60
LOWtest/functional/feature_torcontrol.py86
LOWtest/functional/p2p_sendheaders.py257
LOWtest/functional/test_framework/v2_p2p.py177
LOWtest/functional/test_framework/p2p.py258
LOWtest/functional/test_framework/p2p.py319
LOWtest/functional/test_framework/util.py425
LOWtest/functional/test_framework/util.py598
LOWtest/functional/test_framework/key.py292
LOWtest/functional/test_framework/key.py315
LOWtest/functional/test_framework/netutil.py156
LOWtest/functional/test_framework/socks5.py52
LOWtest/functional/test_framework/socks5.py130
LOWtest/functional/test_framework/messages.py358
LOWtest/functional/test_framework/messages.py389
LOWtest/functional/test_framework/authproxy.py126
34 more matches not shown…
Excessive Try-Catch Wrapping41 hits · 49 pts
SeverityFileLineSnippet
LOWtest/download_utils.py58 except Exception as e:
LOWtest/download_utils.py64 except Exception as e2:
LOWtest/get_previous_releases.py134 except Exception as e:
LOWtest/get_previous_releases.py140 except Exception as e2:
LOWtest/get_previous_releases.py172 except Exception as e:
LOWtest/functional/feature_dbcrash.py87 except Exception:
LOWtest/functional/feature_dbcrash.py111 except Exception as e:
LOWtest/functional/feature_dbcrash.py171 except Exception:
LOWtest/functional/p2p_node_network_limited.py143 except Exception:
LOWtest/functional/tool_utils.py78 except Exception as e:
LOWtest/functional/tool_utils.py83 except Exception as e:
LOWtest/functional/feature_reindex_readonly.py57 except Exception:
LOWtest/functional/feature_reindex_readonly.py74 except Exception:
LOWtest/functional/tool_bitcoin.py60 except Exception as e:
LOWtest/functional/rpc_preciousblock.py20 except Exception:
LOWtest/functional/test_framework/p2p.py376 except Exception as e:
LOWtest/functional/test_framework/p2p.py525 except Exception:
LOWtest/functional/test_framework/util.py124 except Exception as e:
LOWtest/functional/test_framework/util.py190 except Exception as e:
LOWtest/functional/test_framework/util.py199 except Exception as e:
MEDIUMtest/functional/test_framework/util.py115def assert_raises_message(exc, message, fun, *args, **kwds):
MEDIUMtest/functional/test_framework/util.py196def assert_is_hex_string(string):
LOWtest/functional/test_framework/socks5.py207 except Exception as e:
LOWtest/functional/test_framework/socks5.py246 except Exception as e:
MEDIUMtest/functional/test_framework/socks5.py242def try_join_daemon_thread(thread, timeout=0) -> bool:
LOWci/lint.py19 except Exception as e:
LOWci/test/02_run_container.py19 except Exception as e:
MEDIUMci/test/02_run_container.py113 print(f"Error: Directory '{os.environ['CCACHE_DIR']}' must be created in advance.")
LOWcontrib/signet/getcoins.py145except Exception:
LOWcontrib/message-capture/message-capture-parser.py148 except Exception:
MEDIUMcontrib/utxo-tools/utxo_to_sqlite.py123 print(f"Error: provided input file '{args.infile}' doesn't exist.")
MEDIUMcontrib/utxo-tools/utxo_to_sqlite.py127 print(f"Error: provided output file '{args.outfile}' already exists.")
MEDIUMcontrib/utxo-tools/utxo_to_sqlite.py148 print(f"Error: provided input file '{args.infile}' is not an UTXO dump.")
MEDIUMcontrib/utxo-tools/utxo_to_sqlite.py151 print(f"Error: provided input file '{args.infile}' has unknown UTXO dump version {version} "
LOWcontrib/guix/security-check.py41 except Exception:
LOWcontrib/verify-binaries/test.py19 except Exception:
LOWcontrib/verify-binaries/test.py34 except Exception:
LOWcontrib/verify-binaries/verify.py448 except Exception as e:
LOW.github/ci-windows.py23 except Exception as e:
LOW.github/ci-test-each-commit-exec.py16 except Exception as e:
LOW.github/ci-windows-cross.py22 except Exception as e:
AI Slop Vocabulary18 hits · 42 pts
SeverityFileLineSnippet
MEDIUMtest/functional/p2p_v2_misbehaving.py180 # Make a passing connection for more robust disconnection checking.
LOWtest/functional/rpc_createmultisig.py64 expected_ms_script = keys_to_multisig_script(keys, k=nkeys) # simply use n-of-n
MEDIUMtest/functional/wallet_migration.py1289 # In order to get the wsh(pkh()) into only mapScripts and not setWatchOnly, we need to utilize
LOWtest/functional/rpc_psbt.py450 # The decodepsbt RPC is stateless and independent of any settings, we can always just call it on the first node
LOWtest/functional/mining_basic.py490 # We know the header for this invalid block, so should just return early without error:
LOWtest/functional/mempool_package_rbf.py73 # coins (to create conflicts), and perhaps giving them the same fee, we might accidentally just create the same
LOWtest/functional/mempool_truc.py319 # tx_0fee_parent is our transaction "B"; just create it.
LOWtest/functional/mining_prioritisetransaction.py341 # This is a less than 1000-byte transaction, so just set the fee
LOWtest/functional/test_framework/test_node.py142 # For those callers that need more flexibility, they can just set the args property directly.
MEDIUMtest/functional/test_framework/test_node.py374 # The wait is done here to make tests as robust as possible
LOWcontrib/devtools/gen-manpages.py91 # Copyright is the same for all binaries, so just use the first.
MEDIUMcontrib/guix/libexec/build.sh16# time-machine to a commit which includes the aforementioned change, we can
MEDIUMcontrib/guix/libexec/codesign.sh16# time-machine to a commit which includes the aforementioned change, we can
MEDIUMsrc/protocol.h335 // unauthenticated advertisements, so your code must be robust against
MEDIUMsrc/validation.cpp1456 // N.B. this doesn't take into account CPFPs. Chunk-aware validation may be more robust.
MEDIUMsrc/net.cpp3759 // We also should be robust to those attacks which may not require scraping *full* victim's AddrMan
MEDIUMsrc/test/key_io_tests.cpp122// Goal: check that base58 parsing code is robust against a variety of corrupted data
MEDIUMsrc/policy/truc_policy.h19// RBF abilities more robust. A transaction with version=3 is treated as TRUC.
Cross-Language Confusion7 hits · 38 pts
SeverityFileLineSnippet
HIGHtest/functional/feature_assumevalid.py112 # Create a transaction spending the coinbase output with an invalid (null) signature
HIGHtest/functional/interface_usdt_coinselection.py63 coin_selection_events.push(&data, 0);
HIGHtest/functional/interface_usdt_coinselection.py77 coin_selection_events.push(&data, 0);
HIGHtest/functional/interface_usdt_coinselection.py88 coin_selection_events.push(&data, 0);
HIGHtest/functional/interface_usdt_coinselection.py103 coin_selection_events.push(&data, 0);
HIGHtest/functional/interface_http.py298 assert b'{"result":"high-hash","error":null}\n' in response1
HIGH.github/ci-windows.py53 f'"{comspec}" /s /c ""{vsdevcmd}" -arch=x64 -no_logo && set"',
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippet
HIGHtest/functional/tool_bitcoin_chainstate.py0use the pregenerated, deterministic chain up to height 199.
HIGHtest/functional/wallet_assumeutxo.py0use the pregenerated, deterministic chain up to height 199.
HIGHtest/functional/feature_assumeutxo.py0use the pregenerated, deterministic chain up to height 199.
HIGHtest/functional/tool_bitcoin_chainstate.py0start with the nodes disconnected so that one can generate a snapshot including blocks the other hasn't yet seen.
HIGHtest/functional/wallet_assumeutxo.py0start with the nodes disconnected so that one can generate a snapshot including blocks the other hasn't yet seen.
HIGHtest/functional/feature_assumeutxo.py0start with the nodes disconnected so that one can generate a snapshot including blocks the other hasn't yet seen.
Redundant / Tautological Comments10 hits · 14 pts
SeverityFileLineSnippet
LOWtest/lint/lint-includes.py133 # Check if code includes .cpp-files
LOWtest/lint/lint-includes.py152 # Check if Boost dependencies are no longer used
LOWtest/functional/example_test.py85 # Set setup_clean_chain to True to skip this and start from the Genesis
LOWtest/functional/interface_rest.py396 # Check if the 3 tx show up in the new block
LOWtest/functional/rpc_invalidateblock.py107 # Check if it's possible for an ancestor (with block data) to be the chain tip
LOWtest/functional/mempool_accept.py190 tx.vin[0].prevout.n = 1 # Set vout to 1, to spend the other outpoint (49 coins) of the in-chain-tx we want to d
LOWtest/functional/wallet_txn_doublespend.py51 # Assign coins to foo and bar addresses:
LOWtest/functional/feature_fee_estimation.py342 # Verify if the string "Flushed fee estimates to fee_estimates.dat." is present in the debug log file.
LOWtest/functional/test_framework/util.py345 # Set paths to bitcoin core binaries allowing overrides with environment
LOWcontrib/signet/getcoins.py148# Display the output as per the returned status code
Overly Generic Function Names12 hits · 14 pts
SeverityFileLineSnippet
LOWtest/functional/p2p_orphan_handling.py96 def test_function():
LOWtest/functional/test_framework/p2p.py601 def test_function():
LOWtest/functional/test_framework/p2p.py617 def test_function():
LOWtest/functional/test_framework/p2p.py624 def test_function():
LOWtest/functional/test_framework/p2p.py632 def test_function():
LOWtest/functional/test_framework/p2p.py638 def test_function():
LOWtest/functional/test_framework/p2p.py647 def test_function():
LOWtest/functional/test_framework/p2p.py659 def test_function():
LOWtest/functional/test_framework/p2p.py671 def test_function():
LOWtest/functional/test_framework/p2p.py686 def test_function():
LOWtest/functional/test_framework/p2p.py694 def test_function():
LOWtest/functional/test_framework/p2p.py718 def test_function():
Unused Imports6 hits · 6 pts
SeverityFileLineSnippet
LOWtest/functional/test_framework/test_framework.py875
LOWtest/functional/test_framework/test_framework.py889
LOWtest/functional/test_framework/test_framework.py896
LOWcontrib/devtools/clang-format-diff.py24
LOWcontrib/devtools/clang-format-diff.py24
LOWcontrib/devtools/clang-format-diff.py24
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWsrc/cluster_linearize.h1022 * This variable stores the tiebreak of the current best candidate. */
LOWsrc/script/sign.cpp783 // Note we need to check if the result stack is empty before, because it might be used even if the Script
LOWsrc/secp256k1/include/secp256k1_preallocated.h29 * The purpose of this function is to determine how much memory must be provided
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOWsrc/crypto/sha256.cpp493 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "
LOWsrc/crypto/sha256.cpp493 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/netbase.cpp868 /* Don't forget to update doc/p2p-bad-ports.md if you change this list. */