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:
Olaoluwa Osuntokun 2019-06-18 17:55:38 -07:00 committed by GitHub
commit de02d6fdfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
} }
} }