Skip to content

Commit b3529e3

Browse files
committed
fix More descriptive error messages in as_renegotiating_channel()
1 parent fa482bb commit b3529e3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5446,13 +5446,15 @@ impl<SP: Deref> FundedChannel<SP> where
54465446
is_splice: true,
54475447
})
54485448
} else {
5449-
Err("Channel is not actively refunding")
5449+
Err("Received unexpected interactive transaction negotiation message: \
5450+
the channel is splicing, but splice_init/splice_ack has not been exchanged yet")
54505451
}
54515452
} else {
5452-
Err("Channel is not refunding")
5453+
Err("Received unexpected interactive transaction negotiation message: \
5454+
the channel is splicing, but splice_init/splice_ack has not been exchanged yet")
54535455
}
54545456
} else {
5455-
Err("Channel is not splice pending")
5457+
Err("Received unexpected interactive transaction negotiation message: the channel is funded and not splicing")
54565458
}
54575459
}
54585460

0 commit comments

Comments
 (0)