Lightning Network Daemon ⚡️
This report presents the forensic synthetic code analysis of lightningnetwork/lnd, a Go project with 8,160 GitHub stars. SynthScan v2.0 examined 853,854 lines of code across 2109 source files, recording 2600 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 3.4 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).
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.
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.
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.
The scanner identified 2600 distinct pattern matches across 10 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config.go | 161 | // Set defaults for a health check which ensures that the remote signer | COMMENT |
| LOW | config.go | 181 | COMMENT | |
| LOW | config.go | 201 | // defaultPendingCommitInterval specifies the default timeout value | COMMENT |
| LOW | config.go | 221 | // used by default to fund transactions. | COMMENT |
| LOW | config.go | 601 | // out to on cooperative channel close. This applies to all new channel | COMMENT |
| LOW | config.go | 621 | ServerPingTime time.Duration `long:"server-ping-time" description:"How long the server waits on a gRPC stream with no a | COMMENT |
| LOW | config.go | 641 | // the value the rate limiter charges via OnionMessage.WireSize() for a | COMMENT |
| LOW | config.go | 2201 | // not start with a digit. | COMMENT |
| LOW | subrpcserver_config.go | 41 | // subRPCServerConfigs is special sub-config in the main configuration that | COMMENT |
| LOW | subrpcserver_config.go | 61 | COMMENT | |
| LOW | subrpcserver_config.go | 81 | // payment related queries such as requests for estimates of off-chain | COMMENT |
| LOW | server.go | 121 | // ErrPeerNotConnected signals that the server has no connection to the | COMMENT |
| LOW | server.go | 141 | // | COMMENT |
| LOW | server.go | 261 | // automatically set up port forwarding rules in order to advertise to | COMMENT |
| LOW | server.go | 301 | peerErrors map[string]*queue.CircularBuffer | COMMENT |
| LOW | server.go | 441 | // computed once during server start and returned by the per-peer | COMMENT |
| LOW | server.go | 601 | } | COMMENT |
| LOW | server.go | 721 | "in a standalone lnd build") | COMMENT |
| LOW | server.go | 1621 | // the channel amount and push amount. For large | COMMENT |
| LOW | server.go | 2001 | // registerBlockConsumers registers the subsystems that consume block events. | COMMENT |
| LOW | server.go | 3881 | // disconnected for good cause by the server. Currently, a gossip ban from | COMMENT |
| LOW | server.go | 4341 | s.peerConnected(conn, connReq, false) | COMMENT |
| LOW | server.go | 4781 | // Since the peer has been fully initialized, now it's time to notify | COMMENT |
| LOW | rpcserver.go | 581 | COMMENT | |
| LOW | rpcserver.go | 2161 | } else { | COMMENT |
| LOW | rpcserver.go | 2801 | if err != nil { | COMMENT |
| LOW | rpcserver.go | 6621 | // route to a target destination capable of carrying a specific amount of | COMMENT |
| LOW | rpcserver.go | 6661 | COMMENT | |
| LOW | rpcserver.go | 8061 | // channel during shutdown or cancellation, so | COMMENT |
| LOW | rpcserver.go | 8381 | Valid: true, | COMMENT |
| LOW | rpcserver.go | 8541 | COMMENT | |
| LOW | tls_manager.go | 61 | HTTPHeaderTimeout time.Duration | COMMENT |
| LOW | tls_manager.go | 141 | // We set this to 200MiB atm. Should be the same value as maxMsgRecvSize | COMMENT |
| LOW | .golangci.yml | 41 | COMMENT | |
| LOW | config_builder.go | 81 | // that migrates the KV graph to the native SQL schema. | COMMENT |
| LOW | config_builder.go | 101 | // that wants to be able to register its own REST mux onto lnd's main | COMMENT |
| LOW | config_builder.go | 201 | // AuxFundingController is an optional controller that can be used to | COMMENT |
| LOW | config_builder.go | 281 | } | COMMENT |
| LOW | config_builder.go | 1141 | ctx, dbs.ChanStateDB.Backend, | COMMENT |
| LOW | chanrestore.go | 21 | const ( | COMMENT |
| LOW | chanrestore.go | 261 | channel := chanShell.Chan | COMMENT |
| LOW | chanrestore.go | 321 | // A compile-time constraint to ensure chanDBRestorer implements | COMMENT |
| LOW | accessman.go | 21 | // the server mutex. | COMMENT |
| LOW | lnd.go | 41 | "google.golang.org/grpc/credentials" | COMMENT |
| LOW | lnd.go | 61 | COMMENT | |
| LOW | tlv/stream.go | 61 | // MustNewStream creates a new TLV Stream given an encoding codec, a decoding | COMMENT |
| LOW | tlv/stream.go | 121 | // [varint: type] | COMMENT |
| LOW | payments/db/test_harness.go | 21 | // AssertNoIndex checks that an index for a sequence number doesn't | COMMENT |
| LOW | payments/db/query.go | 1 | package paymentsdb | COMMENT |
| LOW | payments/db/query.go | 21 | // MaxPayments is the maximal number of payments returned in the | COMMENT |
| LOW | payments/db/query.go | 41 | // all payments with a creation date greater than or equal to it. | COMMENT |
| LOW | payments/db/query.go | 61 | Payments []*MPPayment | COMMENT |
| LOW | payments/db/payment_status.go | 141 | // Together, we use four variables to determine the payment's status, | COMMENT |
| LOW | payments/db/payment_status.go | 161 | // | false | true | false | true | StatusSucceeded | | COMMENT |
| LOW | payments/db/payment_status.go | 201 | // If any of the HTLCs are not failed nor settled, we | COMMENT |
| LOW | payments/db/payment_status.go | 221 | // received. | COMMENT |
| LOW | payments/db/sql_store.go | 101 | SQLQueries | COMMENT |
| LOW | payments/db/sql_store.go | 641 | COMMENT | |
| LOW | payments/db/sql_store.go | 661 | // - Metadata: CountTotal flag determines if the total payment count should | COMMENT |
| LOW | payments/db/sql_store.go | 941 | // least one HTLC attempt that has been registered but has no resolution record. | COMMENT |
| 2206 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server.go | 2220 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 2248 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 2765 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 2934 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 3847 | // NOTE: This method MUST be run as a goroutine. | COMMENT |
| LOW | server.go | 3901 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 3951 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 4033 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 4047 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 4130 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 4226 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 5161 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 5267 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 5306 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | server.go | 5364 | // NOTE: This function is safe for concurrent access. | COMMENT |
| LOW | payments/db/migration1/sqlc/db_custom.go | 60 | // NOTE: This method is part of the PaymentAndIntent interface. | COMMENT |
| LOW | payments/db/migration1/sqlc/db_custom.go | 69 | // NOTE: This method is part of the PaymentAndIntent interface. | COMMENT |
| LOW | payments/db/migration1/sqlc/db_custom.go | 83 | // NOTE: This method is part of the PaymentAndIntent interface. | COMMENT |
| LOW | payments/db/migration1/sqlc/db_custom.go | 92 | // NOTE: This method is part of the PaymentAndIntent interface. | COMMENT |
| LOW | contractcourt/contract_resolver.go | 58 | // NOTE: This function MUST be run as a goroutine. | COMMENT |
| LOW | contractcourt/commit_sweep_resolver.go | 133 | // NOTE: This function MUST be run as a goroutine. | COMMENT |
| LOW | contractcourt/chain_arbitrator.go | 856 | // NOTE: This method will timeout if the processing of blocks of the | COMMENT |
| LOW | contractcourt/briefcase.go | 118 | // NOTE: This method only exists in order to be able to serve nodes had | COMMENT |
| LOW | shachain/store.go | 107 | // NOTE: This function is part of the Store interface. | COMMENT |
| LOW | shachain/store.go | 130 | // NOTE: This function is part of the Store interface. | COMMENT |
| LOW | shachain/store.go | 163 | // NOTE: This function is part of the Store interface. | COMMENT |
| LOW | netann/channel_update.go | 76 | // NOTE: This method modifies the given update. | COMMENT |
| LOW | netann/chan_status_manager.go | 335 | // NOTE: This method MUST be run as a goroutine. | COMMENT |
| LOW | rpcperms/interceptor.go | 519 | // NOTE: This method is part of the macaroons.CustomCaveatAcceptor interface. | COMMENT |
| LOW | invoices/update.go | 411 | // NOTE: This function is only kept in place in order to be able to handle key | COMMENT |
| LOW | input/musig2.go | 73 | // NOTE: This method is mutually exclusive with MuSig2RegisterNonces for | COMMENT |
| LOW | input/musig2.go | 167 | // NOTE: This method is mutually exclusive with RegisterPubNonce. Once | COMMENT |
| LOW | input/signer.go | 31 | // NOTE: This method will ignore any tweak parameters set within the | COMMENT |
| LOW | input/musig2_session_manager.go | 311 | // NOTE: This method is mutually exclusive with MuSig2RegisterNonces for the | COMMENT |
| LOW | graph/builder.go | 1035 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1079 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1176 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1294 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1309 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1324 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1334 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1357 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1367 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1385 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1393 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1405 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1417 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/builder.go | 1476 | // NOTE: This method is part of the ChannelGraphSource interface. | COMMENT |
| LOW | graph/db/graph_cache.go | 345 | // NOTE: This method should be considered _read only_, the channels or nodes | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 56 | // NOTE: This method is part of the ChannelAndNodes interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 63 | // NOTE: This method is part of the ChannelAndNodes interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 70 | // NOTE: This method is part of the ChannelAndNodes interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 90 | // NOTE: This method is part of the ChannelAndNodeIDs interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 97 | // NOTE: This method is part of the ChannelAndNodeIDs interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 104 | // NOTE: This method is part of the ChannelAndNodeIDs interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 111 | // NOTE: This method is part of the ChannelAndNodes interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 118 | // NOTE: This method is part of the ChannelAndNodes interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 125 | // NOTE: This method is part of the ChannelAndNodeIDs interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 132 | // NOTE: This method is part of the ChannelAndNodeIDs interface. | COMMENT |
| LOW⚡ | graph/db/migration1/sqlc/db_custom.go | 139 | // NOTE: This method is part of the ChannelAndNodeIDs interface. | COMMENT |
| 168 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | contractcourt/utxonursery.go | 87 | // ┌────────────────┐ ┌──────────────┐ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 89 | // └────────────────┘ └──────────────┘ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 93 | // ┌───────────┼────────────────┬───────────┼───────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 98 | // │ │ ┌──────┐ │ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 100 | // │ │ └──────┘ │ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 116 | // │ ┌──────┐ │ │ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 118 | // │ └──────┘ │ │ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 127 | // │ │ ┌──────┐ │ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 129 | // │ └──────┘ │ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 144 | // │ ┌──────┐ │ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 146 | // │ └──────┘ │ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 150 | // └────────────────────────────────────────┼───────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 156 | // ┌────────────────┐ | COMMENT |
| MEDIUM⚡ | contractcourt/utxonursery.go | 158 | // └────────────────┘ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 148 | // ┌─────────┐ drainInputList ┌──────────┐ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 149 | // │inputList├─────┬──────────►│disk/db │ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 150 | // └─────────┘ │ └──────────┘ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 152 | // │ ┌──────────┐ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 153 | // └──────────►│inputChan │ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 154 | // └──────────┘ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 156 | // ┌─────────┐ feedMemQueue ┌──────────┐ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 157 | // │disk/db ├───────┬────────►│memQueue │ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 158 | // └─────────┘ │ └──────────┘ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 160 | // ┌─────────┐ │ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 161 | // │inputChan├───────┘ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 162 | // └─────────┘ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 164 | // ┌─────────┐ feedOutputChan ┌──────────┐ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 165 | // │memQueue ├────────────────►│outputChan│ | COMMENT |
| MEDIUM⚡ | watchtower/wtclient/queue.go | 166 | // └─────────┘ └──────────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | server.go | 1705 | // utilize the full bandwidth of the channel, minus our | COMMENT |
| MEDIUM | server.go | 1715 | // By default, we'll permit them to utilize the full | COMMENT |
| MEDIUM | server.go | 4114 | // utilize the ordering of the local and remote public key. If we didn't use | COMMENT |
| MEDIUM | tlv/record.go | 71 | // Record (the type). This makes it seamless to mix primitive and dynamic | COMMENT |
| MEDIUM | payments/db/sql_store.go | 960 | // payments and would better leverage the existing pagination infrastructure. | COMMENT |
| MEDIUM | payments/db/migration1/sql_store.go | 1032 | // payments and would better leverage the existing pagination infrastructure. | COMMENT |
| MEDIUM | kvdb/etcd/readwrite_bucket.go | 80 | // which put a revision "lock" in the read set. We can leverage this | COMMENT |
| MEDIUM | invoices/invoiceregistry_test.go | 2236 | // received. Moreover it points out some TODOs to make AMP invoices more robust. | COMMENT |
| MEDIUM | chanacceptor/interface.go | 21 | // can each leverage their own decision-making with this information. | COMMENT |
| MEDIUM | graph/db/kv_store.go | 1233 | // utilize an existing db transaction. | COMMENT |
| MEDIUM | graph/db/migration1/kv_store.go | 641 | // utilize an existing db transaction. | COMMENT |
| MEDIUM | discovery/bootstrapper.go | 50 | // MultiSourceBootstrap attempts to utilize a set of NetworkPeerBootstrapper | COMMENT |
| MEDIUM | discovery/sync_manager.go | 94 | // will utilize this in order to create and respond to channel graph | COMMENT |
| MEDIUM | discovery/validation_barrier_test.go | 273 | // occasionally. This tests that the VB is robust against ordering / | COMMENT |
| MEDIUM | discovery/gossiper.go | 222 | // peer will utilize this in order to create and respond to channel | COMMENT |
| MEDIUM | chanstate/open_channel.go | 840 | // robust key for matching the same HTLC across commitment snapshots. | COMMENT |
| MEDIUM | peer/brontide.go | 2145 | // particular channel link in the htlcswitch. We utilize additional | COMMENT |
| MEDIUM | htlcswitch/switch.go | 2904 | // sender selected, while optimistically trying all links to utilize | COMMENT |
| MEDIUM | htlcswitch/hop/payload.go | 508 | // payment-related features that they utilize other than tlv-onion, | COMMENT |
| MEDIUM | lnwire/channel_reestablish.go | 225 | // still utilize the io.Reader interface. | COMMENT |
| MEDIUM | lntest/harness.go | 918 | // SpendUnconfirmed is a boolean indicating whether we can utilize | COMMENT |
| MEDIUM | lntest/btcd.go | 120 | // tests more robust. We might need to restart the backend while there | COMMENT |
| MEDIUM | lntest/harness_setup.go | 95 | // settings to make the tests more robust. We might need to restart the | COMMENT |
| MEDIUM | lntest/unittest/backend.go | 59 | // tests more robust. We might need to restart the backend while there | COMMENT |
| MEDIUM | channeldb/forwarding_log.go | 355 | // utilize pagination to seek further. | COMMENT |
| MEDIUM | channeldb/migration/lnwire21/channel_reestablish.go | 113 | // still utilize the io.Reader interface. | COMMENT |
| LOW | scripts/gen_sqlc_docker.sh | 28 | # numbers anyway, independent of the column type. So we can just use | COMMENT |
| MEDIUM | autopilot/prefattach.go | 69 | // in/out of the node available via its open channels) and utilize the | COMMENT |
| MEDIUM | lnrpc/signrpc/signer_server.go | 296 | // deserialize it into something that we can properly utilize. | COMMENT |
| MEDIUM | lnrpc/signrpc/signer_server.go | 526 | // deserialize it into something that we can properly utilize. | COMMENT |
| MEDIUM | lnwallet/reservation.go | 895 | // utilize the now freed resources. | COMMENT |
| MEDIUM | lnwallet/interface.go | 229 | // a "higher" level of abstraction. Essentially, an overlay wallet. | COMMENT |
| MEDIUM | lnwallet/interface.go | 609 | // to the network, or just arbitrary messages that leverage the wallet's keys | COMMENT |
| MEDIUM | lnwallet/btcwallet/psbt.go | 542 | // private key in order to utilize the tweaks, if populated. | COMMENT |
| MEDIUM | lnwallet/btcwallet/signer.go | 242 | // in order to utilize the tweaks, if populated. If both tweak parameters are | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | accessman.go | 167 | // restricted, then we need to check if we even have a slot for this | COMMENT |
| LOW | accessman.go | 314 | // If this peer is temporary, we need to check if it will | COMMENT |
| LOW | walletunlocker/service.go | 802 | // Before we actually change the password, we need to check if all flags | COMMENT |
| LOW | itest/lnd_invoice_migration_test.go | 174 | // Step 1: Add 10 normal invoices and pay 5 of them. | COMMENT |
| LOW | itest/lnd_invoice_migration_test.go | 196 | // Step 2: Add 10 AMP invoices and send multiple payments to 5 of them. | COMMENT |
| LOW | itest/lnd_payment_migration_test.go | 78 | // Step 1: Send payments from Alice to Bob before the migration. These | COMMENT |
| LOW | itest/lnd_payment_migration_test.go | 115 | // Step 2: Start Alice with --db.use-native-sql to trigger the | COMMENT |
| LOW | itest/lnd_payment_migration_test.go | 131 | // Step 3: Send payments after the migration. These must land in the | COMMENT |
| LOW | fn/goroutine_manager.go | 97 | // Before continuing to start the goroutine, we need to check if the | COMMENT |
| LOW | sqldb/paginate.go | 267 | // Step 1: Fetch the next page of items. | COMMENT |
| LOW | sqldb/paginate.go | 279 | // Step 2: Collect identifiers from this page and batch load | COMMENT |
| LOW | sqldb/paginate.go | 297 | // Step 3: Process each item in this page with the shared batch | COMMENT |
| LOW | sqldb/v2/paginate.go | 267 | // Step 1: Fetch the next page of items. | COMMENT |
| LOW | sqldb/v2/paginate.go | 279 | // Step 2: Collect identifiers from this page and batch load | COMMENT |
| LOW | sqldb/v2/paginate.go | 297 | // Step 3: Process each item in this page with the shared batch | COMMENT |
| LOW | lnwallet/test/test_interface.go | 2197 | // Step 1: create a new miner and start it. | COMMENT |
| LOW⚡ | lnwallet/test/test_interface.go | 2208 | // Step 2: connect the miner to the passed miner and wait for | COMMENT |
| LOW⚡ | lnwallet/test/test_interface.go | 2215 | // Step 3: Do a set of reorgs by disconnecting the two miners, mining | COMMENT |
| LOW | lnwallet/test/test_interface.go | 2259 | // Step 5: Reconnect the miners and wait for them to synchronize. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | netann/chan_status_manager_test.go | 392 | // Initialize link status as requested. | COMMENT |
| HIGH | invoices/sql_store.go | 489 | // Now that we got the invoice itself, fetch the HTLCs as requested by | COMMENT |
| HIGH | graph/db/migration1/sql_migration.go | 707 | // as requested. | COMMENT |
| HIGH | watchtower/wtclient/errors.go | 30 | // acquire a new session as requested. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/check-go-version-yaml.sh | 12 | # Check if any lines specify the Go version. | COMMENT |
| LOW | scripts/check-go-version-yaml.sh | 18 | # Check if the extracted Go version matches the required version. | COMMENT |
| LOW⚡ | scripts/check-go-version-yaml.sh | 38 | # Check if any lines specify the Go version. | COMMENT |
| LOW⚡ | scripts/check-go-version-yaml.sh | 48 | # Check if the extracted Go version matches the required version. | COMMENT |
| LOW⚡ | scripts/check-go-version-yaml.sh | 58 | # Check if the target Go version argument is provided. | COMMENT |
| LOW | scripts/gen_man_pages.sh | 5 | # Check if lncli is installed. | COMMENT |
| LOW | scripts/unit-test-flake-hunter.sh | 3 | # Check if pkg and case variables are provided. | COMMENT |
| LOW | scripts/gen_sqlc_docker.sh | 16 | # Set trap to call restore_files on script exit. This makes sure the old files | COMMENT |
| LOW | scripts/check-go-version-dockerfile.sh | 11 | # Check if all lines have the required Go version. | COMMENT |
| LOW | scripts/check-go-version-dockerfile.sh | 24 | # Check if the target Go version argument is provided. | COMMENT |
| LOW | scripts/release.sh | 156 | # Check if the active Go version matches the specified Go version. | COMMENT |
| LOW | scripts/check-pgp-expiry.sh | 17 | # Check if a key has expired or is expiring soon | COMMENT |
| LOW | scripts/bw-compatibility-test/network.sh | 67 | # Check if timeout has been reached | COMMENT |
| LOW | .github/workflows/backport.yml | 59 | # Check if branch exists in remote | COMMENT |
| LOW | .github/workflows/stats.yml | 17 | # Check if the PR is from the base repo (not a fork). Only the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | funding/manager_test.go | 2477 | pendingChannels, err := bob.fundingMgr.cfg.Wallet.Cfg.Database.FetchPendingChannels() | CODE |
| CRITICAL | funding/manager_test.go | 2526 | pendingChannels, err := alice.fundingMgr.cfg.Wallet.Cfg.Database.FetchPendingChannels() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/itest_parallel.sh | 11 | # Create a variable to hold the final exit code. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lnrpc/lightning.yaml | 5 | # Please make sure to also update the `metadata.go` file when editing this file | COMMENT |