protofsm: don't return error on broadcast fail

We don't return an error on broadcast fail as the broadcast might have failed due to insufficient fees, or inability to be replaced, which may happen when one side attempts to unnecessarily bump their coop close fee.
This commit is contained in:
Olaoluwa Osuntokun 2024-03-07 20:05:49 -08:00
parent 231275faee
commit a3e74415bf

View File

@ -266,7 +266,7 @@ func (s *StateMachine[Event, Env]) SendMessage(msg lnwire.Message) bool {
return false
}
log.Debugf("FSM(%v): sending msg: %v", s.cfg.Env.Name(),
log.Debugf("FSM(%v): new inbound msg: %v", s.cfg.Env.Name(),
newLogClosure(func() string {
return spew.Sdump(msg)
}),
@ -441,7 +441,7 @@ func (s *StateMachine[Event, Env]) executeDaemonEvent( //nolint:funlen
daemonEvent.Tx, daemonEvent.Label,
)
if err != nil {
return fmt.Errorf("unable to broadcast txn: %w", err)
log.Errorf("unable to broadcast txn: %v", err)
}
return nil