Skip to content

Commit

Permalink
chore: add inbound fees fields to channel event
Browse files Browse the repository at this point in the history
  • Loading branch information
bufo24 committed May 30, 2024
1 parent 0728cbc commit 0d9d08b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lnd_methods/info/subscribe_to_graph.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export type SubscribeToGraphChannelUpdatedEvent = {
fee_rate: number;
/** Standard Format Channel Id */
id: string;
/** Channel Base Inbound Fee Millitokens */
inbound_base_fee_mtokens: string;
/** Channel Inbound Fee Rate In Millitokens Per Million */
inbound_fee_rate: number;
/** Channel Is Disabled */
is_disabled: boolean;
/** Channel Maximum HTLC Millitokens */
Expand Down
4 changes: 4 additions & 0 deletions lnd_responses/rpc_channel_update_as_update.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const now = () => new Date().toISOString();
disabled: <Forwarding is Disabled Bool>
fee_base_msat: <Forwarding Base Fee Millitokens String>
fee_rate_milli_msat: <Forwarding Fee Rate Per Million String>
inbound_fee_base_msat: <Inbound Forwarding Base Fee Millitokens Number>
inbound_fee_rate_milli_msat: <Inbound Forwarding Fee Rate Per Million Number>
max_htlc_msat: <Maximum HTLC Size Millitokens String>
min_htlc: <Minimum HTLC Size Millitokens String>
time_lock_delta: <Forwarding CLTV Delta Number>
Expand Down Expand Up @@ -123,6 +125,8 @@ module.exports = update => {
cltv_delta: update.routing_policy.time_lock_delta,
fee_rate: Number(update.routing_policy.fee_rate_milli_msat),
id: chanFormat({number: update.chan_id}).channel,
inbound_base_fee_mtokens: update.inbound_fee_base_msat,
inbound_fee_rate: update.routing_policy.inbound_fee_rate_milli_msat,
is_disabled: update.routing_policy.disabled,
max_htlc_mtokens: maxHtlc !== Number().toString() ? maxHtlc : undefined,
min_htlc_mtokens: update.routing_policy.min_htlc,
Expand Down

0 comments on commit 0d9d08b

Please sign in to comment.