Skip to content

Commit

Permalink
[lbry] fee: update getinfo.paytxfee to 0
Browse files Browse the repository at this point in the history
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
  • Loading branch information
roylee17 committed Jun 15, 2022
1 parent ce9b4eb commit 444fc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/legacyrpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 444fc83

Please sign in to comment.