diff --git a/wallet/wallet.go b/wallet/wallet.go index 393953e..65ae56f 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -528,7 +528,7 @@ func (sw *SingleAddressWallet) Redistribute(outputs int, amount, feePerByte type outputs -= len(txn.SiacoinOutputs) // estimate the fees - outputFees := feePerByte.Mul64(sw.cm.TipState().TransactionWeight(txn)) + outputFees := feePerByte.Mul64(state.TransactionWeight(txn)) feePerInput := feePerByte.Mul64(BytesPerInput) // collect outputs that cover the total amount