Closed vindard closed 1 year ago
Looks like those two samples were taken at different time periods, can you do the same but at the same time?
Ah you're right, from getChannels
now the commit fee matches from lnd (see below). What would cause this fee to change over time?
{
capacity: 500000,
commit_transaction_fee: 2810,
commit_transaction_weight: 1116,
cooperative_close_address: undefined,
cooperative_close_delay_height: undefined,
description: undefined,
id: '426x1x0',
is_active: true,
is_closing: false,
is_opening: false,
is_partner_initiated: false,
is_private: false,
is_trusted_funding: undefined,
local_balance: 250000,
local_csv: 144,
local_dust: 354,
local_given: 0,
local_max_htlcs: 50,
local_max_pending_mtokens: '495000000',
local_min_htlc_mtokens: '1',
local_reserve: 5000,
other_ids: [],
partner_public_key: '039341ef13e776dc1611502cf510110d9ac5cdc252141f5997adcfd72cef34c3a7',
past_states: 4,
pending_payments: [],
received: 0,
remote_balance: 246530,
remote_csv: 144,
remote_dust: 354,
remote_given: 0,
remote_max_htlcs: 50,
remote_max_pending_mtokens: '495000000',
remote_min_htlc_mtokens: '1',
remote_reserve: 5000,
sent: 246530,
time_offline: 0,
time_online: 1702000,
transaction_id: '3252171149db503e175ea0cf12ae0abe06101135b56f2cbbedd350fca8469be1',
transaction_vout: 0,
type: 'anchor',
unsettled_balance: 0
}
More pending HTLCs that are above the dust value will increase the size of the commitment transaction and with the size increase comes a fee increase
Ok gotcha thanks. Closing this one now then
Making a note that having a remote balance of 0 also affects how many anchor outputs there are and the commit_fee by extension
Description
In
listchannels
on lnd I get acommit_fee
of2810
whereas for the same channel fetched viagetChannels
method I get acommit_transaction_fee
of3240
. Are these supposed to be equivalent values? And if yes, why are they different? Json blobs below.listchannels
from lnd:getChannels
method in the library: