mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-17 13:06:14 +02:00
Block forwarding of an onion message when the resolved next hop is the same peer that delivered it. Such a forward would immediately bounce the message back over the very connection it arrived on, which is never useful and can be abused to amplify traffic against a peer. The check runs after the routing action is resolved, so both direct next-node-ID and SCID-resolved paths are covered. A new `ErrSamePeerCycle` is returned (and logged at warn level) when a cycle is detected. |
||
|---|---|---|
| .. | ||
| actor.go | ||
| actor_test.go | ||
| errors.go | ||
| hop.go | ||
| hop_test.go | ||
| interfaces.go | ||
| log.go | ||
| onion_endpoint.go | ||
| ratelimit.go | ||
| ratelimit_test.go | ||
| resolver.go | ||
| resolver_test.go | ||
| test_utils.go | ||