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

Function try_update_feerates

lightningd/channel_control.c:127–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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