]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #965 from TheBlueMatt/2021-06-log-cleanups
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Tue, 29 Jun 2021 20:13:50 +0000 (20:13 +0000)
committerGitHub <noreply@github.com>
Tue, 29 Jun 2021 20:13:50 +0000 (20:13 +0000)
Cleanup logging

1  2 
lightning/src/chain/channelmonitor.rs
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/msgs.rs
lightning/src/routing/network_graph.rs
lightning/src/routing/router.rs

Simple merge
Simple merge
Simple merge
index 9c81f797f1499ab3e5024768407fd8787a76da04,06308b01cee0a3c1141ea426b7fcbd07343a2a99..5f5bc51dbb14c3b205847994f238131d2e4c2fbb
@@@ -1702,10 -1701,9 +1714,10 @@@ impl<Signer: Sign> Channel<Signer> 
                Ok((channel_monitor, self.funding_transaction.as_ref().cloned().unwrap()))
        }
  
-       pub fn funding_locked(&mut self, msg: &msgs::FundingLocked) -> Result<(), ChannelError> {
+       pub fn funding_locked<L: Deref>(&mut self, msg: &msgs::FundingLocked, logger: &L) -> Result<(), ChannelError> where L::Target: Logger {
                if self.channel_state & (ChannelState::PeerDisconnected as u32) == ChannelState::PeerDisconnected as u32 {
 -                      return Err(ChannelError::Close("Peer sent funding_locked when we needed a channel_reestablish".to_owned()));
 +                      self.workaround_lnd_bug_4006 = Some(msg.clone());
 +                      return Err(ChannelError::Ignore("Peer sent funding_locked when we needed a channel_reestablish. The peer is likely lnd, see https://github.com/lightningnetwork/lnd/issues/4006".to_owned()));
                }
  
                let non_shutdown_state = self.channel_state & (!MULTI_STATE_FLAGS);
Simple merge
Simple merge
Simple merge
Simple merge