diff --git a/cmd/broadcaster-cli/app/utxos/broadcast/broadcast.go b/cmd/broadcaster-cli/app/utxos/broadcast/broadcast.go index 01a4974d2..6c1fc09a9 100644 --- a/cmd/broadcaster-cli/app/utxos/broadcast/broadcast.go +++ b/cmd/broadcaster-cli/app/utxos/broadcast/broadcast.go @@ -206,7 +206,7 @@ func init() { log.Fatal(err) } - Cmd.Flags().Int("opReturn", 0, "Text which will be added to an OP_RETURN output. If empty, no OP_RETURN output will be added") + Cmd.Flags().String("opReturn", "", "Text which will be added to an OP_RETURN output. If empty, no OP_RETURN output will be added") err = viper.BindPFlag("opReturn", Cmd.Flags().Lookup("opReturn")) if err != nil { log.Fatal(err) diff --git a/internal/broadcaster/rate_broadcaster.go b/internal/broadcaster/rate_broadcaster.go index 2fb16b33a..a5f1f32fb 100644 --- a/internal/broadcaster/rate_broadcaster.go +++ b/internal/broadcaster/rate_broadcaster.go @@ -72,7 +72,7 @@ func (b *UTXORateBroadcaster) Start() error { if math.Abs(float64(unconfirmed)) > 0 { return fmt.Errorf("key with address %s balance has unconfirmed amount %d sat", b.ks.Address(!b.isTestnet), unconfirmed) } - b.logger.Info("Start broadcasting", slog.String("wait for status", b.waitForStatus.String())) + b.logger.Info("Start broadcasting", slog.String("wait for status", b.waitForStatus.String()), slog.String("op return", b.opReturn)) utxoSet, err := b.utxoClient.GetUTXOsWithRetries(b.ctx, b.ks.Script, b.ks.Address(!b.isTestnet), 1*time.Second, 5) if err != nil { @@ -178,7 +178,6 @@ utxoLoop: if err != nil { return nil, fmt.Errorf("failed to add OP_RETURN output: %v", err) } - b.logger.Info("added OP_RETURN output") } err = SignAllInputs(tx, b.ks.PrivateKey)