From be57749653285293316ccfbccf7aef3e41546677 Mon Sep 17 00:00:00 2001 From: Salvionied Date: Thu, 17 Oct 2024 18:06:13 +0200 Subject: [PATCH] fix fee x byte --- txBuilding/Utils/Utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txBuilding/Utils/Utils.go b/txBuilding/Utils/Utils.go index c63cac8..7428ad7 100644 --- a/txBuilding/Utils/Utils.go +++ b/txBuilding/Utils/Utils.go @@ -70,7 +70,7 @@ func Fee(context Base.ChainContext, txSize int, steps int64, mem int64, refInput mult := 1.2 baseFee := 15.0 Range := 25600.0 - for refInputsSize > int(Range) { + for refInputsSize > 0 { cur := Range curFee := cur * baseFee addedFee += int(curFee)