From 24fc8bb6c5b61a159880c6f61009a49f25bf1a47 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Wed, 9 Mar 2016 14:58:04 -0500 Subject: [PATCH] Read synchronized relay fee once when checking outputs. --- wallet/wallet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index f0c90d8..98cdcea 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -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 }