Merge pull request #626 from Roasbeef/dust-fix-sendoutputs
wallet: use relay fee to check for dust not fee rate
This commit is contained in:
commit
de02d6fdfb
1 changed files with 4 additions and 1 deletions
|
@ -3154,7 +3154,10 @@ func (w *Wallet) SendOutputs(outputs []*wire.TxOut, account uint32,
|
||||||
// Ensure the outputs to be created adhere to the network's consensus
|
// Ensure the outputs to be created adhere to the network's consensus
|
||||||
// rules.
|
// rules.
|
||||||
for _, output := range outputs {
|
for _, output := range outputs {
|
||||||
if err := txrules.CheckOutput(output, satPerKb); err != nil {
|
err := txrules.CheckOutput(
|
||||||
|
output, txrules.DefaultRelayFeePerKb,
|
||||||
|
)
|
||||||
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue