]> git.bitcoin.ninja Git - rust-lightning/commit
ChannelManager+Router++ Logger Arc --> Deref
authorValentine Wallace <vwallace@protonmail.com>
Mon, 2 Mar 2020 17:55:53 +0000 (12:55 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Sun, 17 May 2020 16:33:43 +0000 (12:33 -0400)
commit87126b391b895098484a86dc484a381b825e9a31
tree0d22bc700eaffcf889e7195dd0c6bd7cb0f8b018
parent59fe3001f9090893c784ec91d9f55cf616e71049
ChannelManager+Router++ Logger Arc --> Deref

This caused a bunch of cascading changes, including
passing loggers down to Channels in function calls
rather than having each Channel have a pointer to the
ChannelManager's Logger (which was a circular reference).
Other structs that the Channel had passed its Logger to also
had their loggers removed. Other newly unused Loggers were
also removed, especially when keeping them would've caused
a bunch of extra test changes to be necessary, e.g. with
the ChainWatchInterfaceUtil's Logger.
20 files changed:
fuzz/src/chanmon_consistency.rs
fuzz/src/chanmon_deser.rs
fuzz/src/full_stack.rs
lightning-net-tokio/src/lib.rs
lightning/src/chain/chaininterface.rs
lightning/src/chain/keysinterface.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onchaintx.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/peer_handler.rs
lightning/src/routing/network_graph.rs
lightning/src/routing/router.rs
lightning/src/util/logger.rs
lightning/src/util/macro_logger.rs
lightning/src/util/test_utils.rs