From a4064c70dc00deeed9b3cde1bc4e39b0c1cfa2a8 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 7 Mar 2024 20:05:49 -0800 Subject: [PATCH] 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. --- protofsm/state_machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protofsm/state_machine.go b/protofsm/state_machine.go index 408d7004e..bf61d727c 100644 --- a/protofsm/state_machine.go +++ b/protofsm/state_machine.go @@ -436,7 +436,7 @@ func (s *StateMachine[Event, Env]) executeDaemonEvent(ctx context.Context, 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