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

Function rbf_channel_hook_serialize

lightningd/dual_open_control.c:188–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186};
187
188static void rbf_channel_hook_serialize(struct rbf_channel_payload *payload,
189 struct json_stream *stream,
190 struct plugin *plugin)
191{
192 json_object_start(stream, "rbf_channel");
193 json_add_node_id(stream, "id", &payload->peer_id);
194 json_add_channel_id(stream, "channel_id", &payload->channel_id);
195 json_add_amount_sats_deprecated(stream,
196 "their_funding", "their_funding_msat",
197 payload->their_funding);
198 json_add_num(stream, "locktime", payload->locktime);
199 json_add_num(stream, "feerate_our_max",
200 payload->feerate_our_max);
201 json_add_num(stream, "feerate_our_min",
202 payload->feerate_our_min);
203 json_add_num(stream, "funding_feerate_per_kw",
204 payload->funding_feerate_per_kw);
205 json_add_amount_sat_msat(stream, "channel_max_msat",
206 payload->channel_max);
207 json_object_end(stream);
208}
209
210/* ~Map of the Territory~
211 *

Callers

nothing calls this directly

Calls 7

json_object_startFunction · 0.50
json_add_node_idFunction · 0.50
json_add_channel_idFunction · 0.50
json_add_numFunction · 0.50
json_add_amount_sat_msatFunction · 0.50
json_object_endFunction · 0.50

Tested by

no test coverage detected