We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e59c26a commit 9db943eCopy full SHA for 9db943e
lightning/src/ln/channel.rs
@@ -4912,13 +4912,11 @@ impl<Signer: Sign> Writeable for Channel<Signer> {
4912
4913
if self.is_outbound() {
4914
self.pending_update_fee.map(|(a, _)| a).write(writer)?;
4915
- } else {
+ } else if let Some((feerate, FeeUpdateState::AwaitingRemoteRevokeToAnnounce)) = self.pending_update_fee {
4916
// As for inbound HTLCs, if the update was only announced and never committed, drop it.
4917
- if let Some((feerate, FeeUpdateState::AwaitingRemoteRevokeToAnnounce)) = self.pending_update_fee {
4918
- Some(feerate).write(writer)?;
4919
4920
- None::<u32>.write(writer)?;
4921
- }
+ Some(feerate).write(writer)?;
+ } else {
+ None::<u32>.write(writer)?;
4922
}
4923
self.holding_cell_update_fee.write(writer)?;
4924
0 commit comments