diff --git a/wallet/txauthor/author.go b/wallet/txauthor/author.go index 18f996c..34449b5 100644 --- a/wallet/txauthor/author.go +++ b/wallet/txauthor/author.go @@ -133,7 +133,7 @@ func NewUnsignedTransaction(outputs []*wire.TxOut, relayFeePerKb btcutil.Amount, changeIndex := -1 changeAmount := inputAmount - targetAmount - maxRequiredFee if changeAmount != 0 && !txrules.IsDustAmount(changeAmount, - txsizes.P2WPKHPkScriptSize, relayFeePerKb) { + txsizes.P2WPKHPkScriptSize, txrules.DefaultRelayFeePerKb) { changeScript, err := fetchChange() if err != nil { return nil, err