From bfbd8e1648a78f4de155ced51e7f217cfc18c9ce Mon Sep 17 00:00:00 2001 From: Lazar Date: Tue, 15 Oct 2024 17:01:38 +0200 Subject: [PATCH] pr-comment --- submitter/relayer/relayer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submitter/relayer/relayer.go b/submitter/relayer/relayer.go index 351e4cb..d6301eb 100644 --- a/submitter/relayer/relayer.go +++ b/submitter/relayer/relayer.go @@ -533,7 +533,7 @@ func (rl *Relayer) buildTxWithData(data []byte, firstTx *wire.MsgTx) (*types.Btc return nil, fmt.Errorf("failed to create script for change address: %s err %w", changeAddr, err) } - changeOutput := wire.NewTxOut(546, changePkScript) + changeOutput := wire.NewTxOut(int64(dustThreshold), changePkScript) rawTxResult.Transaction.AddTxOut(changeOutput) }