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:
2 files changed
+17
-4
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user