MCPcopy Create free account
hub / github.com/ElementsProject/lightning / try_update_feerates

Function try_update_feerates

lightningd/channel_control.c:121–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121static void try_update_feerates(struct lightningd *ld, struct channel *channel)
122{
123 /* No point until funding locked in */
124 if (!channel_state_fees_can_change(channel->state))
125 return;
126
127 /* Can't if no daemon listening. */
128 if (!channel->owner)
129 return;
130
131 /* The feerate message is only understood by `channeld` so
132 * don't attempt to send it to other subds*/
133 if (!streq(channel->owner->name, "channeld"))
134 return;
135
136 channel_update_feerates(ld, channel);
137}
138
139static void try_update_blockheight(struct lightningd *ld,
140 struct channel *channel)

Callers 3

notify_feerate_changeFunction · 0.85
lockin_has_completedFunction · 0.85
peer_start_channeldFunction · 0.85

Calls 2

channel_update_feeratesFunction · 0.70

Tested by

no test coverage detected