]> git.bitcoin.ninja Git - rust-lightning/commit
Rename ChannelClosed to ChannelFailure
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 5 Nov 2021 17:55:25 +0000 (12:55 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 2 Jun 2022 22:15:29 +0000 (15:15 -0700)
commit3b3a4ba0a6e60e90792bf78d2c5d9cd5c59a5ddb
tree46c8a85a226f20ffd616c6da43091206cbf3c878
parentdcffefae3dbc2b1fadc6b42ad39960bb4bc301d7
Rename ChannelClosed to ChannelFailure

A NetworkUpdate indicating ChannelClosed actually corresponds to a
channel failure as described in BOLT 4:

0x2000 (NODE): node failure (otherwise channel)

Rename the enum variant to ChannelFailure and rename NetworkGraph
methods close_channel_from_update and fail_node to channel_failed and
node_failed, respectively.
fuzz/src/router.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/onion_utils.rs
lightning/src/routing/network_graph.rs