From 04f435ddf52f4c26c9d979cee31fc60ac9604a7b Mon Sep 17 00:00:00 2001 From: WhoSoup Date: Wed, 21 Oct 2020 08:50:58 +0200 Subject: [PATCH] set the required fee --- wsapi/wsapi.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wsapi/wsapi.go b/wsapi/wsapi.go index 429a00e..1ca52a0 100644 --- a/wsapi/wsapi.go +++ b/wsapi/wsapi.go @@ -1571,6 +1571,7 @@ func factoidTxToTransaction(t interfaces.ITransaction) ( if r.TotalInputs <= r.TotalOutputs+r.TotalECOutputs { r.FeesPaid = 0 + r.FeesRequired = feesRequired(t) } else { r.FeesPaid = r.TotalInputs - (r.TotalOutputs + r.TotalECOutputs) }