From 7db0d6d824a63fe43349fa65b3028e380d4c8027 Mon Sep 17 00:00:00 2001 From: PJ Date: Tue, 30 Jan 2024 14:27:49 -0400 Subject: [PATCH] wallet: use state variable --- wallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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