From 444fc83aadaa6eb15c1faa12ee77a9f7d3d106ae Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Tue, 14 Jun 2022 16:44:06 -0700 Subject: [PATCH] [lbry] fee: update getinfo.paytxfee to 0 This is a hack fix to unblock lbrypool.net. The paytxfee in lbcwallet is actually not being used anywhere, and is hardcoded to DefaultRelayFee, which is 1000. Lbrycrd sets default to 0. Also, since the paytxfee is not actually used/implemented, the 'settxfee' RPC is also --- rpc/legacyrpc/methods.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/legacyrpc/methods.go b/rpc/legacyrpc/methods.go index b19d8b7..f9e5cee 100644 --- a/rpc/legacyrpc/methods.go +++ b/rpc/legacyrpc/methods.go @@ -649,7 +649,7 @@ func getInfo(icmd interface{}, w *wallet.Wallet, chainClient *chain.RPCClient) ( info.WalletVersion = int32(waddrmgr.LatestMgrVersion) info.Balance = bal.ToBTC() info.Staked = staked.ToBTC() - info.PaytxFee = float64(txrules.DefaultRelayFeePerKb) + info.PaytxFee = 0 // We don't set the following since they don't make much sense in the // wallet architecture: // - unlocked_until