Skip to content

Commit ae0ad19

Browse files
authored
Merge pull request #394 from TheBlueMatt/2019-11-broken-build
Fix broken build
2 parents 148c797 + f08383e commit ae0ad19

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/ln/channelmanager.rs

+10-8
Original file line numberDiff line numberDiff line change
@@ -1393,14 +1393,16 @@ impl ChannelManager {
13931393
match handle_error!(self, err) {
13941394
Ok(_) => unreachable!(),
13951395
Err(e) => {
1396-
if let Some(msgs::ErrorAction::IgnoreError) = e.action {
1397-
} else {
1398-
log_error!(self, "Got bad keys: {}!", e.err);
1399-
let mut channel_state = self.channel_state.lock().unwrap();
1400-
channel_state.pending_msg_events.push(events::MessageSendEvent::HandleError {
1401-
node_id: their_node_id,
1402-
action: e.action,
1403-
});
1396+
match e.action {
1397+
msgs::ErrorAction::IgnoreError => {},
1398+
_ => {
1399+
log_error!(self, "Got bad keys: {}!", e.err);
1400+
let mut channel_state = self.channel_state.lock().unwrap();
1401+
channel_state.pending_msg_events.push(events::MessageSendEvent::HandleError {
1402+
node_id: their_node_id,
1403+
action: e.action,
1404+
});
1405+
},
14041406
}
14051407
continue;
14061408
},

src/ln/channelmonitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ impl ChannelMonitor {
17401740
output: outputs,
17411741
};
17421742

1743-
let mut predicted_weight = spend_tx.get_weight() + Self::get_witnesses_weight(&inputs_desc[..]);
1743+
let predicted_weight = spend_tx.get_weight() + Self::get_witnesses_weight(&inputs_desc[..]);
17441744

17451745
let mut used_feerate;
17461746
if !subtract_high_prio_fee!(self, fee_estimator, spend_tx.output[0].value, predicted_weight, tx.txid(), used_feerate) {

0 commit comments

Comments
 (0)