Read synchronized relay fee once when checking outputs.
This commit is contained in:
parent
d09c2a84c1
commit
24fc8bb6c5
1 changed files with 2 additions and 1 deletions
|
@ -2025,8 +2025,9 @@ func (w *Wallet) SendOutputs(outputs []*wire.TxOut, account uint32,
|
|||
return nil, err
|
||||
}
|
||||
|
||||
relayFee := w.RelayFee()
|
||||
for _, output := range outputs {
|
||||
err = txrules.CheckOutput(output, w.RelayFee())
|
||||
err = txrules.CheckOutput(output, relayFee)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue