sweep: remove redundant error from Broadcast

This commit is contained in:
yyforyongyu
2024-04-30 17:39:45 +08:00
committed by yyforyongyu
parent 77ff2c0585
commit 719ca5b229
5 changed files with 16 additions and 35 deletions

View File

@@ -838,16 +838,7 @@ func (s *UtxoSweeper) sweep(set InputSet) error {
// Broadcast will return a read-only chan that we will listen to for
// this publish result and future RBF attempt.
resp, err := s.cfg.Publisher.Broadcast(req)
if err != nil {
log.Errorf("Initial broadcast failed: %v, inputs=\n%v", err,
inputTypeSummary(set.Inputs()))
// TODO(yy): find out which input is causing the failure.
s.markInputsPublishFailed(set)
return err
}
resp := s.cfg.Publisher.Broadcast(req)
// Successfully sent the broadcast attempt, we now handle the result by
// subscribing to the result chan and listen for future updates about