]> git.bitcoin.ninja Git - rust-lightning/commit
Optionally reject HTLC forwards over priv chans with a new config
authorMatt Corallo <git@bluematt.me>
Sat, 26 Jun 2021 14:15:30 +0000 (14:15 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 9 Jul 2021 01:33:44 +0000 (01:33 +0000)
commit520b53eb1ca3b187b664de02b095f69b37effbd5
tree6d9a4e46f227223a5ffd330de116735446eb46b8
parent99953ed8ff50a423476527d3ed743d55ed097d84
Optionally reject HTLC forwards over priv chans with a new config

Private nodes should never wish to forward HTLCs at all, which we
support here by disabling forwards out over private channels by
default. As private nodes should not have any public channels, this
suffices, without allowing users to disable forwarding over
channels announced in the routing graph already.

Closes #969
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/config.rs