Repository Analysis

bitcoin/bitcoin

Bitcoin Core integration/staging tree

3.2 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of bitcoin/bitcoin, a C++ project with 89,744 GitHub stars. SynthScan v2.0 examined 845,887 lines of code across 2424 source files, recording 2295 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 3.2 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.2
Adjusted Score
3.2
Raw Score
100%
Time Factor
2026-07-13
Last Push
89.7K
Stars
C++
Language
845.9K
Lines of Code
2.4K
Files
2.3K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 13MEDIUM 159LOW 2123

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2295 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block1395 hits · 1392 pts
SeverityFileLineSnippetContext
LOWtest/lint/lint-locale-dependence.py1#!/usr/bin/env python3COMMENT
LOWtest/lint/lint-locale-dependence.py21#COMMENT
LOWtest/lint/test_runner/src/util.rs1// Copyright (c) The Bitcoin Core developersCOMMENT
LOWtest/functional/mempool_packages.py241COMMENT
LOWtest/functional/wallet_fundrawtransaction.py1121 addr1 = wallet.getnewaddress(address_type="bech32")COMMENT
LOWtest/functional/wallet_fundrawtransaction.py1261 "add_to_wallet": False,COMMENT
LOWtest/functional/wallet_migration.py1281 wallet = self.create_legacy_wallet("invalid_p2wsh")COMMENT
LOWtest/functional/mempool_package_limits.py1#!/usr/bin/env python3COMMENT
LOWtest/functional/feature_taproot.py121COMMENT
LOWtest/functional/feature_taproot.py141# ctx1 = {**DEFAULT_CONTEXT, inputs=[getter("sign"), b'\x01']}COMMENT
LOWtest/functional/feature_taproot.py441 # The script to add to the witness in (if P2WSH; None implies P2WPKH)COMMENT
LOWtest/functional/feature_taproot.py701COMMENT
LOWtest/functional/feature_taproot.py1081 # Test that 999-of-999 multisig works (but 1000-of-1000 triggers stack size limits)COMMENT
LOWtest/functional/wallet_groups.py81COMMENT
LOWtest/functional/wallet_resendwallettransactions.py81 # Tell scheduler to call MaybeResendWalletTxs now.COMMENT
LOWtest/functional/mining_basic.py101 # Generate three transactions that must be mined in sequenceCOMMENT
LOWtest/functional/p2p_compactblocks_blocksonly.py81 # 1 -> high bandwidthCOMMENT
LOWtest/functional/test_runner.py481 export_env_build_path(config)COMMENT
LOWtest/functional/feature_pruning.py381 self.log.info("Check that we haven't started pruning yet because we're below PruneAfterHeight")COMMENT
LOWtest/functional/feature_pruning.py401 #COMMENT
LOWtest/functional/feature_pruning.py421 # \ \COMMENT
LOWtest/functional/feature_pruning.py441 # *...**(1320)COMMENT
LOWtest/functional/rpc_decodescript.py121 # OP_NOP2 is also known as OP_CHECKLOCKTIMEVERIFY.COMMENT
LOWtest/functional/interface_http.py461 response = conn.get(path)COMMENT
LOWtest/functional/feature_bind_port_discover.py21# interface that is UP and not a loopback interface (IFF_LOOPBACK). To set theseCOMMENT
LOWtest/functional/feature_block.py741 self.send_blocks([b48, b48p], success=True) # Reorg to the longer chainCOMMENT
LOWtest/functional/feature_block.py761 # Result: FailsCOMMENT
LOWtest/functional/feature_block.py921 # care whether the bloated block is accepted or rejected; it only cares that the second block is accepted.COMMENT
LOWtest/functional/feature_block.py1001 self.move_tip(65)COMMENT
LOWtest/functional/feature_block.py1081 #COMMENT
LOWtest/functional/wallet_balance.py101 # First argument of getbalance must be set to "*"COMMENT
LOWtest/functional/wallet_balance.py121 #COMMENT
LOWtest/functional/feature_cltv.py41 tx.vin[0].nSequence = nsequenceCOMMENT
LOWtest/functional/test_framework/script_util.py41 assert_equal,COMMENT
LOWtest/functional/test_framework/socks5.py101 self.auth = False # Support authenticationCOMMENT
LOWtest/functional/test_framework/authproxy.py1# Copyright (c) 2011 Jeff GarzikCOMMENT
LOWtest/functional/test_framework/test_framework.py361 # Connect the nodes as a "chain". This allows usCOMMENT
LOWtest/functional/test_framework/script.py901COMMENT
LOWtest/functional/test_framework/test_node.py341 rpc.getblockcount()COMMENT
LOWtest/functional/test_framework/test_node.py741 p2p_conn.wait_until(lambda: p2p_conn.is_connected, check_connected=False)COMMENT
LOWci/test/00_setup_env.sh1#!/usr/bin/env bashCOMMENT
LOWcontrib/tracing/log_raw_p2p_msgs.py1#!/usr/bin/env python3COMMENT
LOWcontrib/tracing/log_raw_p2p_msgs.py21# VM's stack is limited to 512 bytes, and we can't allocate more than about 32kbCOMMENT
LOWcontrib/tracing/log_raw_p2p_msgs.py41program = """COMMENT
LOWcontrib/tracing/p2p_monitor.py1#!/usr/bin/env python3COMMENT
LOWcontrib/qos/tc.sh1#!/usr/bin/env bashCOMMENT
LOWcontrib/qos/tc.sh41COMMENT
LOWcontrib/asmap/asmap.py161 # of failure the default instruction's argument is returned. It is followed by anCOMMENT
LOWcontrib/linearize/example-linearize.cfg21COMMENT
LOWcontrib/verify-commits/gpg.sh1#!/bin/shCOMMENT
LOWcontrib/devtools/headerssync-params.py21MINCHAINWORK_HEADERS = 938343COMMENT
LOWcontrib/devtools/headerssync-params.py41# Explanation:COMMENT
LOWcontrib/devtools/headerssync-params.py61# - When redownloading, headers are fed through a per-peer queue that holds {bufsize} headers,COMMENT
LOWcontrib/devtools/headerssync-params.py81# threshold, we will consume per-peer memory that is sufficient to store {n/period}COMMENT
LOWcontrib/devtools/headerssync-params.py161 max_rate = NoneCOMMENT
LOWcontrib/guix/symbol-check.py21# Ubuntu 20.04 (Focal) EOL: 2030. https://wiki.ubuntu.com/ReleaseTeamCOMMENT
LOWcontrib/guix/libexec/setup.sh1#!/usr/bin/env bashCOMMENT
LOWcontrib/guix/libexec/codesign.sh1#!/usr/bin/env bashCOMMENT
LOWcontrib/guix/libexec/prelude.bash81#COMMENT
LOW.github/workflows/ci.yml61 # Moreover, pull requests that contain a merge commitCOMMENT
1335 more matches not shown…
Hyper-Verbose Identifiers543 hits · 544 pts
SeverityFileLineSnippetContext
LOWtest/lint/lint-includes.py100def find_quote_syntax_inclusions():CODE
LOWtest/lint/lint-locale-dependence.py212def find_locale_dependent_function_uses():CODE
LOWtest/lint/lint-files.py123def check_all_file_permissions(files) -> int:CODE
LOWtest/lint/lint-files.py168def check_shebang_file_permissions(files_meta) -> int:CODE
LOWtest/lint/check-doc.py27def lint_missing_argument_documentation():CODE
LOWtest/lint/check-doc.py46def lint_missing_hidden_wallet_args():CODE
LOWtest/fuzz/test_runner.py204def transform_process_message_target(targets, src_dir):CODE
LOWtest/functional/rpc_signer.py36 def skip_test_if_missing_module(self):CODE
LOWtest/functional/tool_bitcoin_chainstate.py27 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_backwards_compatibility.py51 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_backwards_compatibility.py162 def test_ignore_legacy_during_startup(self, legacy_nodes, node_master):CODE
LOWtest/functional/wallet_listreceivedby.py24 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_startup.py28 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_startup.py46 def test_load_unwritable_wallet(self, node):CODE
LOWtest/functional/wallet_change_address.py27 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_sendmany.py12 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_sendmany.py19 def test_sffo_repeated_address(self):CODE
LOWtest/functional/wallet_keypool_topup.py30 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_reorgsrestore.py31 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_reorgsrestore.py34 def test_coinbase_automatic_abandon_during_startup(self):CODE
LOWtest/functional/wallet_reorgsrestore.py93 def test_reorg_handling_during_unclean_shutdown(self):CODE
LOWtest/functional/mempool_limit.py35 def test_mid_package_eviction_success(self):CODE
LOWtest/functional/mempool_limit.py128 def test_mid_package_replacement(self):CODE
LOWtest/functional/interface_ipc.py26 def skip_test_if_missing_module(self):CODE
LOWtest/functional/interface_ipc.py71 def run_deprecated_mining_test(self):CODE
LOWtest/functional/interface_ipc.py86 def run_unclean_disconnect_test(self):CODE
LOWtest/functional/wallet_exported_watchonly.py30 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_exported_watchonly.py95 def test_export_with_address_book(self):CODE
LOWtest/functional/wallet_exported_watchonly.py119 def test_export_with_txs_and_locked_coins(self):CODE
LOWtest/functional/wallet_exported_watchonly.py161 def test_export_imported_descriptors(self):CODE
LOWtest/functional/wallet_assumeutxo.py28 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_assumeutxo.py69 def complete_background_validation(self, node):CODE
LOWtest/functional/wallet_assumeutxo.py79 def test_backup_during_background_sync_pruned_node(self, n3, dump_output, expected_error_message):CODE
LOWtest/functional/wallet_assumeutxo.py92 def test_restore_wallet_pruneheight(self, n3):CODE
LOWtest/functional/wallet_gethdkeys.py23 def skip_test_if_missing_module(self):CODE
LOWtest/functional/mempool_datacarrier.py37 def test_null_data_transaction(self, node: TestNode, data, success: bool) -> None:CODE
LOWtest/functional/rpc_help.py68 def test_client_conversion_table(self):CODE
LOWtest/functional/rpc_help.py99 def test_client_string_conversion_table(self):CODE
LOWtest/functional/wallet_orphanedreward.py15 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_musig.py30 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_musig.py34 def create_wallets_and_keys_from_pattern(self, pat):CODE
LOWtest/functional/wallet_musig.py71 def construct_and_import_musig_descriptor_in_wallets(self, pat, wallets, keys, only_one_musig_wallet=False):CODE
LOWtest/functional/wallet_musig.py125 def assert_musig_aggregate_in_script(self, signer_data, pattern, psbtin):CODE
LOWtest/functional/p2p_leak_tx.py67 def test_notfound_on_replaced_tx(self):CODE
LOWtest/functional/p2p_leak_tx.py100 def test_notfound_on_unannounced_tx(self):CODE
LOWtest/functional/wallet_anchor.py31 def skip_test_if_missing_module(self):CODE
LOWtest/functional/wallet_simulaterawtx.py22 def skip_test_if_missing_module(self):CODE
LOWtest/functional/feature_notifications.py210 def large_work_invalid_chain_warning_in_alert_file(self):CODE
LOWtest/functional/feature_maxuploadtarget.py55 def assert_uploadtarget_state(self, *, target_reached, serve_historical_blocks):CODE
LOWtest/functional/p2p_handshake.py49 def test_desirable_service_flags(self, node, service_flag_tests, desirable_service_flags, expect_disconnect):CODE
LOWtest/functional/wallet_basic.py40 def skip_test_if_missing_module(self):CODE
LOWtest/functional/p2p_invalid_messages.py103 def test_duplicate_version_msg(self):CODE
LOWtest/functional/p2p_invalid_messages.py272 def test_oversized_getdata_msg(self):CODE
LOWtest/functional/p2p_invalid_messages.py276 def test_oversized_headers_msg(self):CODE
LOWtest/functional/p2p_invalid_messages.py280 def test_invalid_pow_headers_msg(self):CODE
LOWtest/functional/p2p_invalid_messages.py307 def test_noncontinuous_headers_msg(self):CODE
LOWtest/functional/example_test.py96 def skip_test_if_missing_module(self):CODE
LOWtest/functional/feature_reindex.py82 def continue_reindex_after_shutdown(self):CODE
LOWtest/functional/rpc_packages.py329 def assert_equal_package_results(self, node, testmempoolaccept_result, submitpackage_result):CODE
LOWtest/functional/rpc_packages.py347 def test_submit_child_with_parents(self, num_parents, partial_submit):CODE
483 more matches not shown…
Self-Referential Comments97 hits · 300 pts
SeverityFileLineSnippetContext
MEDIUMtest/functional/wallet_backwards_compatibility.py209 # Create a number of wallets and open them in older versions:COMMENT
MEDIUMtest/functional/wallet_backwards_compatibility.py218 # Create a confirmed transaction, receiving coinsCOMMENT
MEDIUMtest/functional/wallet_backwards_compatibility.py223 # Create a conflicting transaction using RBFCOMMENT
MEDIUMtest/functional/wallet_listreceivedby.py172 # Create a new label named "mynewlabel" that has a 0 balanceCOMMENT
MEDIUMtest/functional/wallet_reorgsrestore.py48 # Create a new block in node0, coinbase going to wallet0COMMENT
MEDIUMtest/functional/wallet_reorgsrestore.py172 # Create a conflicted tx broadcast on node0 chain and conflicting tx broadcast on node1 chain. Both spend from tCOMMENT
MEDIUMtest/functional/mempool_limit.py87 # Create a child spending everything with an insane fee, bumping the package above mempool_entry_minrateCOMMENT
MEDIUMtest/functional/mempool_limit.py171 # Create a child spending everything, CPFPing the low-feerate parent.COMMENT
MEDIUMtest/functional/wallet_assumeutxo.py129 # Create a wallet that we will create a backup for later (at snapshot height)COMMENT
MEDIUMtest/functional/wallet_anchor.py37 # Create an anchor output, and spend itCOMMENT
MEDIUMtest/functional/wallet_basic.py211 # Create a couple of transactions to send them to node2, submit them throughCOMMENT
MEDIUMtest/functional/feature_assumevalid.py92 # Create the first block with a coinbase output to our keyCOMMENT
MEDIUMtest/functional/feature_assumevalid.py112 # Create a transaction spending the coinbase output with an invalid (null) signatureCOMMENT
MEDIUMtest/functional/rpc_packages.py416 # Create a transaction chain such as only the parent gets accepted (by making the child'sCOMMENT
MEDIUMtest/functional/wallet_rescan_unconfirmed.py46 # Create an unconfirmed child transaction from the parent tx, sending allCOMMENT
MEDIUMtest/functional/wallet_bumpfee.py205 # Create a tx with two outputs. recipient and change.COMMENT
MEDIUMtest/functional/wallet_bumpfee.py352 # Create a transaction with segwit output, then create an RBF transactionCOMMENT
MEDIUMtest/functional/wallet_bumpfee.py555 # Create a wallet with private keys that can sign PSBTsCOMMENT
MEDIUMtest/functional/interface_rest.py174 # Create a transaction, check that it's found with /checkmempool, butCOMMENT
MEDIUMtest/functional/wallet_listsinceblock.py421 # Create a watchonly wallet tracking two multisig descriptors.COMMENT
MEDIUMtest/functional/wallet_listsinceblock.py459 # Create a UTxO paying to one of our change addresses.COMMENT
MEDIUMtest/functional/wallet_fundrawtransaction.py1494 # Create a replacement tx to 'final_tx1' that has 1 BTC target instead of 0.1.COMMENT
MEDIUMtest/functional/feature_bip68_sequence.py220 # Create a mempool tx.COMMENT
MEDIUMtest/functional/feature_bip68_sequence.py235 # Create a spend of the 0th output of orig_tx with a sequence lockCOMMENT
MEDIUMtest/functional/p2p_compactblocks.py468 # Create a chain of transactions from given utxo, and add to a new block.COMMENT
MEDIUMtest/functional/wallet_migration.py1332 # Create a wsh(sh(pkh())) - P2SH inside of P2WSH is invalidCOMMENT
MEDIUMtest/functional/wallet_migration.py1342 # Create a wsh(wsh(pkh())) - P2WSH inside of P2WSH is invalidCOMMENT
MEDIUMtest/functional/mempool_updatefromblock.py77 # Create a new transaction.COMMENT
MEDIUMtest/functional/feature_taproot.py1336 # Create a list of scripts which will be built into a taptreeCOMMENT
MEDIUMtest/functional/mempool_persist.py108 # Create a tx and prioritise but don't submit until after the restart.COMMENT
MEDIUMtest/functional/feature_segwit.py237 # Create a 3-tx chain: tx1 (non-segwit input, paying to a segwit output) ->COMMENT
MEDIUMtest/functional/wallet_abandonconflict.py82 #Create a child tx spending AB1 and CCOMMENT
MEDIUMtest/functional/wallet_abandonconflict.py91 # Create a child tx spending ABC2COMMENT
MEDIUMtest/functional/wallet_abandonconflict.py175 # Create a double spend of AB1 by spending again from only A's 10 outputCOMMENT
MEDIUMtest/functional/feature_utxo_set_hash.py36 # Create a spending transaction and mine a block which includes itCOMMENT
MEDIUMtest/functional/rpc_psbt.py825 # Create a psbt spending outputs from nodes 1 and 2COMMENT
MEDIUMtest/functional/rpc_psbt.py1032 # Create a PSBT. None of the inputs are filled initiallyCOMMENT
MEDIUMtest/functional/rpc_signrawtransactionwithkey.py77 # Create a new P2SH-P2WSH 1-of-1 multisig address:COMMENT
MEDIUMtest/functional/feature_assumeutxo.py268 # Create an alternative chain of 2 new blocks, forking off the main chain at the block before the snapshot blockCOMMENT
MEDIUMtest/functional/feature_assumeutxo.py427 # Create a stale block that forks off the main chain before the snapshot.COMMENT
MEDIUMtest/functional/p2p_1p1c_network.py107 # Create the transactions.COMMENT
MEDIUMtest/functional/p2p_invalid_block.py121 # Create a block that spends the output of a tx in a previous block.COMMENT
MEDIUMtest/functional/feature_config_args.py191 # Create a temporary directory that will be treated as the default dataCOMMENT
MEDIUMtest/functional/feature_config_args.py463 # Create a temporary directory that will be treated as the default dataCOMMENT
MEDIUMtest/functional/feature_config_args.py561 # Create the directory and ensure the config file now worksCOMMENT
MEDIUMtest/functional/rpc_net.py104 # Create a few getpeerinfo last_block/last_transaction values.COMMENT
MEDIUMtest/functional/p2p_segwit.py310 # Create a transaction that spends the coinbaseCOMMENT
MEDIUMtest/functional/p2p_segwit.py624 # Create the same output as tx3, but by replacing txCOMMENT
MEDIUMtest/functional/p2p_segwit.py890 # Create a P2WSH transaction.COMMENT
MEDIUMtest/functional/p2p_segwit.py1145 # Create a transaction that splits our utxo into many outputsCOMMENT
MEDIUMtest/functional/p2p_segwit.py1616 # Create a slight bias for producing more utxosCOMMENT
MEDIUMtest/functional/p2p_segwit.py1718 # Create a p2sh output -- this is so we can pass the standardnessCOMMENT
MEDIUMtest/functional/p2p_segwit.py2001 # Create a Segwit output from the latest UTXOCOMMENT
MEDIUMtest/functional/p2p_segwit.py2010 # Create a Segwit transactionCOMMENT
MEDIUMtest/functional/mempool_cluster.py131 # Create a package from the second to last transaction.COMMENT
MEDIUMtest/functional/mempool_cluster.py198 # Create a chain of transactionsCOMMENT
MEDIUMtest/functional/mempool_cluster.py258 # Create a transaction spending from all clusters that exceeds the cluster size limit.COMMENT
MEDIUMtest/functional/p2p_private_broadcast.py103 # Create a Python P2P listening node and instruct the SOCKS5 proxy toCOMMENT
MEDIUMtest/functional/wallet_avoidreuse.py124 # Create a wallet with avoid reuse, and test that disabling it afterwards persistsCOMMENT
MEDIUMtest/functional/wallet_avoidreuse.py144 # Create a wallet with disable_private_keys set; this should workCOMMENT
37 more matches not shown…
Decorative Section Separators44 hits · 159 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt26#=============================COMMENT
MEDIUMCMakeLists.txt28#=============================COMMENT
MEDIUMCMakeLists.txt69#=============================COMMENT
MEDIUMCMakeLists.txt71#=============================COMMENT
MEDIUMCMakeLists.txt98#=============================COMMENT
MEDIUMCMakeLists.txt100#=============================COMMENT
MEDIUMCMakeLists.txt154#=============================COMMENT
MEDIUMCMakeLists.txt156#=============================COMMENT
MEDIUMCMakeLists.txt168#=============================COMMENT
MEDIUMCMakeLists.txt170#=============================COMMENT
MEDIUMCMakeLists.txt202#=============================COMMENT
MEDIUMCMakeLists.txt204#=============================COMMENT
MEDIUMCMakeLists.txt213#=============================COMMENT
MEDIUMCMakeLists.txt215#=============================COMMENT
MEDIUMtest/functional/wallet_conflicts.py67 # ----------------COMMENT
MEDIUMtest/functional/feature_assumeutxo.py720 # -----------------------------COMMENT
MEDIUMsrc/CMakeLists.txt10#=============================COMMENT
MEDIUMsrc/CMakeLists.txt12#=============================COMMENT
MEDIUMsrc/secp256k1/CMakeLists.txt3#=============================COMMENT
MEDIUMsrc/secp256k1/CMakeLists.txt5#=============================COMMENT
MEDIUMsrc/secp256k1/CMakeLists.txt28#=============================COMMENT
MEDIUMsrc/secp256k1/CMakeLists.txt30#=============================COMMENT
MEDIUMsrc/secp256k1/CMakeLists.txt34#=============================COMMENT
MEDIUMsrc/secp256k1/CMakeLists.txt36#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt3#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt5#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt13# ============================================================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt15# ============================================================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt34#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt36#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt49#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt51#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt83#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt85#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt96#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt98#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt115#=============================COMMENT
MEDIUMsrc/minisketch/CMakeLists.txt117#=============================COMMENT
MEDIUMsrc/node/mini_miner.cpp337 // ┌─────────────────┐COMMENT
MEDIUMsrc/node/mini_miner.cpp344 // └──────▲───▲──────┘ P2_ASFR: 2.47 s/vBCOMMENT
MEDIUMsrc/node/mini_miner.cpp346 // ┌───────────────┐ │ │ ┌──────────────┐COMMENT
MEDIUMsrc/node/mini_miner.cpp353 // └───────────▲───┘ └───▲──────────┘COMMENT
MEDIUMsrc/node/mini_miner.cpp355 // │ ┌───────────┐ │COMMENT
MEDIUMsrc/node/mini_miner.cpp362 // └───────────┘COMMENT
Deep Nesting94 hits · 94 pts
SeverityFileLineSnippetContext
LOWtest/download_utils.py12CODE
LOWtest/get_previous_releases.py107CODE
LOWtest/lint/lint-files.py123CODE
LOWtest/lint/lint-files.py168CODE
LOWtest/functional/combine_logs.py103CODE
LOWtest/functional/combine_logs.py145CODE
LOWtest/functional/wallet_backwards_compatibility.py88CODE
LOWtest/functional/wallet_backwards_compatibility.py194CODE
LOWtest/functional/wallet_keypool_topup.py33CODE
LOWtest/functional/wallet_gethdkeys.py78CODE
LOWtest/functional/wallet_gethdkeys.py132CODE
LOWtest/functional/rpc_help.py20CODE
LOWtest/functional/wallet_musig.py34CODE
LOWtest/functional/wallet_musig.py125CODE
LOWtest/functional/p2p_v2_misbehaving.py104CODE
LOWtest/functional/p2p_v2_misbehaving.py159CODE
LOWtest/functional/wallet_address_types.py98CODE
LOWtest/functional/wallet_address_types.py157CODE
LOWtest/functional/wallet_address_types.py224CODE
LOWtest/functional/wallet_fundrawtransaction.py67CODE
LOWtest/functional/feature_bip68_sequence.py129CODE
LOWtest/functional/mempool_updatefromblock.py33CODE
LOWtest/functional/feature_taproot.py511CODE
LOWtest/functional/feature_taproot.py678CODE
LOWtest/functional/feature_taproot.py1449CODE
LOWtest/functional/feature_taproot.py1649CODE
LOWtest/functional/feature_taproot.py1770CODE
LOWtest/functional/feature_utxo_set_hash.py22CODE
LOWtest/functional/wallet_transactiontime_rescan.py31CODE
LOWtest/functional/rpc_psbt.py535CODE
LOWtest/functional/interface_bitcoin_cli.py42CODE
LOWtest/functional/p2p_private_broadcast.py220CODE
LOWtest/functional/p2p_private_broadcast.py272CODE
LOWtest/functional/interface_usdt_coinselection.py139CODE
LOWtest/functional/wallet_send.py41CODE
LOWtest/functional/test_runner.py412CODE
LOWtest/functional/test_runner.py589CODE
LOWtest/functional/test_runner.py762CODE
LOWtest/functional/p2p_tx_download.py384CODE
LOWtest/functional/wallet_taproot.py174CODE
LOWtest/functional/feature_reindex_readonly.py22CODE
LOWtest/functional/p2p_disconnect_ban.py19CODE
LOWtest/functional/interface_zmq.py139CODE
LOWtest/functional/interface_zmq.py457CODE
LOWtest/functional/feature_torcontrol.py60CODE
LOWtest/functional/feature_torcontrol.py86CODE
LOWtest/functional/p2p_sendheaders.py257CODE
LOWtest/functional/test_framework/v2_p2p.py178CODE
LOWtest/functional/test_framework/p2p.py261CODE
LOWtest/functional/test_framework/p2p.py322CODE
LOWtest/functional/test_framework/util.py425CODE
LOWtest/functional/test_framework/util.py600CODE
LOWtest/functional/test_framework/key.py292CODE
LOWtest/functional/test_framework/key.py315CODE
LOWtest/functional/test_framework/netutil.py156CODE
LOWtest/functional/test_framework/socks5.py53CODE
LOWtest/functional/test_framework/socks5.py139CODE
LOWtest/functional/test_framework/messages.py358CODE
LOWtest/functional/test_framework/messages.py389CODE
LOWtest/functional/test_framework/authproxy.py126CODE
34 more matches not shown…
Excessive Try-Catch Wrapping42 hits · 50 pts
SeverityFileLineSnippetContext
LOWtest/download_utils.py58 except Exception as e:CODE
LOWtest/download_utils.py64 except Exception as e2:CODE
LOWtest/get_previous_releases.py134 except Exception as e:CODE
LOWtest/get_previous_releases.py140 except Exception as e2:CODE
LOWtest/get_previous_releases.py172 except Exception as e:CODE
LOWtest/functional/feature_dbcrash.py87 except Exception:CODE
LOWtest/functional/feature_dbcrash.py111 except Exception as e:CODE
LOWtest/functional/feature_dbcrash.py171 except Exception:CODE
LOWtest/functional/p2p_node_network_limited.py143 except Exception:CODE
LOWtest/functional/tool_utils.py78 except Exception as e:CODE
LOWtest/functional/tool_utils.py83 except Exception as e:CODE
LOWtest/functional/feature_reindex_readonly.py57 except Exception:CODE
LOWtest/functional/feature_reindex_readonly.py74 except Exception:CODE
LOWtest/functional/tool_bitcoin.py60 except Exception as e:CODE
LOWtest/functional/rpc_preciousblock.py20 except Exception:CODE
LOWtest/functional/test_framework/p2p.py379 except Exception as e:CODE
LOWtest/functional/test_framework/p2p.py528 except Exception:CODE
LOWtest/functional/test_framework/util.py124 except Exception as e:CODE
LOWtest/functional/test_framework/util.py190 except Exception as e:CODE
LOWtest/functional/test_framework/util.py199 except Exception as e:CODE
MEDIUMtest/functional/test_framework/util.py115def assert_raises_message(exc, message, fun, *args, **kwds):CODE
MEDIUMtest/functional/test_framework/util.py196def assert_is_hex_string(string):CODE
LOWtest/functional/test_framework/netutil.py228 except Exception:CODE
LOWtest/functional/test_framework/socks5.py224 except Exception as e:CODE
LOWtest/functional/test_framework/socks5.py263 except Exception as e:CODE
MEDIUMtest/functional/test_framework/socks5.py259def try_join_daemon_thread(thread, timeout=0) -> bool:CODE
LOWci/lint.py19 except Exception as e:CODE
LOWci/test/02_run_container.py19 except Exception as e:CODE
MEDIUMci/test/02_run_container.py113 print(f"Error: Directory '{os.environ['CCACHE_DIR']}' must be created in advance.")CODE
LOWcontrib/signet/getcoins.py145except Exception:CODE
LOWcontrib/message-capture/message-capture-parser.py148 except Exception:CODE
MEDIUMcontrib/utxo-tools/utxo_to_sqlite.py123 print(f"Error: provided input file '{args.infile}' doesn't exist.")CODE
MEDIUMcontrib/utxo-tools/utxo_to_sqlite.py127 print(f"Error: provided output file '{args.outfile}' already exists.")CODE
MEDIUMcontrib/utxo-tools/utxo_to_sqlite.py148 print(f"Error: provided input file '{args.infile}' is not an UTXO dump.")CODE
MEDIUMcontrib/utxo-tools/utxo_to_sqlite.py151 print(f"Error: provided input file '{args.infile}' has unknown UTXO dump version {version} "CODE
LOWcontrib/guix/security-check.py41 except Exception:CODE
LOWcontrib/verify-binaries/test.py19 except Exception:CODE
LOWcontrib/verify-binaries/test.py34 except Exception:CODE
LOWcontrib/verify-binaries/verify.py448 except Exception as e:CODE
LOW.github/ci-windows.py23 except Exception as e:CODE
LOW.github/ci-test-each-commit-exec.py16 except Exception as e:CODE
LOW.github/ci-windows-cross.py22 except Exception as e:CODE
AI Slop Vocabulary18 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMtest/functional/p2p_v2_misbehaving.py180 # Make a passing connection for more robust disconnection checking.COMMENT
LOWtest/functional/rpc_createmultisig.py64 expected_ms_script = keys_to_multisig_script(keys, k=nkeys) # simply use n-of-nCODE
MEDIUMtest/functional/wallet_migration.py1292 # In order to get the wsh(pkh()) into only mapScripts and not setWatchOnly, we need to utilizeCOMMENT
LOWtest/functional/rpc_psbt.py450 # The decodepsbt RPC is stateless and independent of any settings, we can always just call it on the first nodeCOMMENT
LOWtest/functional/mining_basic.py490 # We know the header for this invalid block, so should just return early without error:COMMENT
LOWtest/functional/mempool_package_rbf.py73 # coins (to create conflicts), and perhaps giving them the same fee, we might accidentally just create the same COMMENT
LOWtest/functional/mempool_truc.py318 # tx_0fee_parent is our transaction "B"; just create it.COMMENT
LOWtest/functional/mining_prioritisetransaction.py341 # This is a less than 1000-byte transaction, so just set the feeCOMMENT
LOWtest/functional/test_framework/test_node.py134 # For those callers that need more flexibility, they can just set the args property directly.COMMENT
MEDIUMtest/functional/test_framework/test_node.py359 # The wait is done here to make tests as robust as possibleCOMMENT
LOWcontrib/devtools/gen-manpages.py91 # Copyright is the same for all binaries, so just use the first.COMMENT
MEDIUMcontrib/guix/libexec/setup.sh16# time-machine to a commit which includes the aforementioned change, we canCOMMENT
MEDIUMcontrib/guix/libexec/codesign.sh16# time-machine to a commit which includes the aforementioned change, we canCOMMENT
MEDIUMsrc/protocol.h347 // unauthenticated advertisements, so your code must be robust againstCOMMENT
MEDIUMsrc/validation.cpp1464 // N.B. this doesn't take into account CPFPs. Chunk-aware validation may be more robust.COMMENT
MEDIUMsrc/net.cpp3792 // We also should be robust to those attacks which may not require scraping *full* victim's AddrManCOMMENT
MEDIUMsrc/test/key_io_tests.cpp122// Goal: check that base58 parsing code is robust against a variety of corrupted dataCOMMENT
MEDIUMsrc/policy/truc_policy.h19// RBF abilities more robust. A transaction with version=3 is treated as TRUC.COMMENT
Cross-Language Confusion7 hits · 38 pts
SeverityFileLineSnippetContext
HIGHtest/functional/feature_assumevalid.py112 # Create a transaction spending the coinbase output with an invalid (null) signatureCOMMENT
HIGHtest/functional/interface_usdt_coinselection.py63 coin_selection_events.push(&data, 0);CODE
HIGHtest/functional/interface_usdt_coinselection.py77 coin_selection_events.push(&data, 0);CODE
HIGHtest/functional/interface_usdt_coinselection.py88 coin_selection_events.push(&data, 0);CODE
HIGHtest/functional/interface_usdt_coinselection.py103 coin_selection_events.push(&data, 0);CODE
HIGHtest/functional/interface_http.py311 assert b'{"result":"high-hash","error":null}\n' in response1CODE
HIGH.github/ci-windows.py53 f'"{comspec}" /s /c ""{vsdevcmd}" -arch=x64 -no_logo && set"',CODE
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtest/functional/tool_bitcoin_chainstate.py0use the pregenerated, deterministic chain up to height 199.STRING
HIGHtest/functional/wallet_assumeutxo.py0use the pregenerated, deterministic chain up to height 199.STRING
HIGHtest/functional/feature_assumeutxo.py0use the pregenerated, deterministic chain up to height 199.STRING
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.STRING
HIGHtest/functional/wallet_assumeutxo.py0start with the nodes disconnected so that one can generate a snapshot including blocks the other hasn't yet seen.STRING
HIGHtest/functional/feature_assumeutxo.py0start with the nodes disconnected so that one can generate a snapshot including blocks the other hasn't yet seen.STRING
Redundant / Tautological Comments10 hits · 14 pts
SeverityFileLineSnippetContext
LOWtest/lint/lint-includes.py132 # Check if code includes .cpp-filesCOMMENT
LOWtest/lint/lint-includes.py151 # Check if Boost dependencies are no longer usedCOMMENT
LOWtest/functional/example_test.py85 # Set setup_clean_chain to True to skip this and start from the GenesisCOMMENT
LOWtest/functional/interface_rest.py398 # Check if the 3 tx show up in the new blockCOMMENT
LOWtest/functional/rpc_invalidateblock.py107 # Check if it's possible for an ancestor (with block data) to be the chain tipCOMMENT
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 dCODE
LOWtest/functional/wallet_txn_doublespend.py51 # Assign coins to foo and bar addresses:COMMENT
LOWtest/functional/feature_fee_estimation.py342 # Verify if the string "Flushed fee estimates to fee_estimates.dat." is present in the debug log file.COMMENT
LOWtest/functional/test_framework/util.py345 # Set paths to bitcoin core binaries allowing overrides with environmentCOMMENT
LOWcontrib/signet/getcoins.py148# Display the output as per the returned status codeCOMMENT
Overly Generic Function Names12 hits · 14 pts
SeverityFileLineSnippetContext
LOWtest/functional/p2p_orphan_handling.py95 def test_function():CODE
LOWtest/functional/test_framework/p2p.py605 def test_function():CODE
LOWtest/functional/test_framework/p2p.py621 def test_function():CODE
LOWtest/functional/test_framework/p2p.py628 def test_function():CODE
LOWtest/functional/test_framework/p2p.py636 def test_function():CODE
LOWtest/functional/test_framework/p2p.py642 def test_function():CODE
LOWtest/functional/test_framework/p2p.py651 def test_function():CODE
LOWtest/functional/test_framework/p2p.py663 def test_function():CODE
LOWtest/functional/test_framework/p2p.py675 def test_function():CODE
LOWtest/functional/test_framework/p2p.py690 def test_function():CODE
LOWtest/functional/test_framework/p2p.py698 def test_function():CODE
LOWtest/functional/test_framework/p2p.py722 def test_function():CODE
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWcontrib/macdeploy/README.md13### Step 1: Obtaining `Xcode.app`COMMENT
LOWcontrib/macdeploy/README.md45### Step 2: Generating the SDK tarball from `Xcode.app`COMMENT
LOWcontrib/linearize/README.md4## Step 1: Download hash listCOMMENT
LOWcontrib/linearize/README.md25## Step 2: Copy local block dataCOMMENT
LOWcontrib/guix/README.md332### Step 1: Authorize the signing keysCOMMENT
LOWcontrib/guix/README.md385### Step 2: Specify the substitute serversCOMMENT
Fake / Example Data5 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/crypto/sha256.cpp493 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "CODE
LOWsrc/crypto/sha256.cpp493 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "CODE
LOWsrc/test/script_tests.cpp1189 CKey dummy_key;CODE
LOWsrc/test/script_tests.cpp1190 dummy_key.MakeNewKey(/*fCompressed=*/true);CODE
LOWsrc/test/script_tests.cpp1191 const CPubKey dummy_pubkey{dummy_key.GetPubKey()};CODE
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/functional/test_framework/test_framework.py989CODE
LOWtest/functional/test_framework/test_framework.py1003CODE
LOWtest/functional/test_framework/test_framework.py1010CODE
LOWcontrib/devtools/clang-format-diff.py24CODE
LOWcontrib/devtools/clang-format-diff.py24CODE
LOWcontrib/devtools/clang-format-diff.py24CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/cluster_linearize.h1022 * This variable stores the tiebreak of the current best candidate. */COMMENT
LOWsrc/script/sign.cpp785 // Note we need to check if the result stack is empty before, because it might be used even if the ScriptCOMMENT
LOWsrc/secp256k1/include/secp256k1_preallocated.h29 * The purpose of this function is to determine how much memory must be providedCOMMENT
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtest/functional/feature_taproot.py511CODE
LOWtest/functional/wallet_send.py41CODE
LOWtest/functional/test_framework/wallet.py295CODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcontrib/asmap/asmap.py310 def update_multi(self, entries: list[tuple[list[bool], int]]) -> None:CODE
LOWcontrib/asmap/asmap.py316 def _set_trie(self, trie) -> None:CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcontrib/devtools/circular-dependencies.py42# TODO: implement support for multiple include directoriesCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/netbase.cpp868 /* Don't forget to update doc/p2p-bad-ports.md if you change this list. */COMMENT