sweep: allow published input to be marked as PublishFailed

If anything happens during the fee bumping process, and causes the input
to be failed, we should be able to mark it as `PublishFailed`.
This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:35 +08:00
1 parent acde08c65a
commit a2b8f4e19c
2 files changed
+17 -4

No files matched your search

+1 -1
View File
@@ -961,7 +961,7 @@ func (s *UtxoSweeper) markInputsPublishFailed(outpoints []wire.OutPoint) {
}
// Valdiate that the input is in an expected state.
if pi.state != PendingPublish {
if pi.state != PendingPublish && pi.state != Published {
log.Errorf("Expect input %v to have %v, instead it "+
"has %v", op, PendingPublish, pi.state)