X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fchannel.rs;h=eead5bf62301d3ff2b85180e691138ebeeffbe32;hb=315589076609d574c4367046d7270f18957cad1b;hp=d0a4644abdfa7164a25275ca2738f4a3e535b093;hpb=86944d34a1fb845fd01772f591422026d393a38d;p=rust-lightning diff --git a/src/ln/channel.rs b/src/ln/channel.rs index d0a4644a..eead5bf6 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -1894,7 +1894,8 @@ impl Channel { return Err(HandleError{err: "Got a revoke commitment secret which didn't correspond to their current pubkey", action: None}); } } - self.channel_monitor.provide_secret(self.cur_remote_commitment_transaction_number + 1, msg.per_commitment_secret)?; + self.channel_monitor.provide_secret(self.cur_remote_commitment_transaction_number + 1, msg.per_commitment_secret) + .map_err(|e| HandleError{err: e.0, action: None})?; self.channel_monitor.provide_their_next_revocation_point(Some((self.cur_remote_commitment_transaction_number - 1, msg.next_per_commitment_point))); // Update state now that we've passed all the can-fail calls...