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

Function commitment_revocation_hook_serialize

lightningd/peer_htlcs.c:2284–2292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2282};
2283
2284static void commitment_revocation_hook_serialize(
2285 struct commitment_revocation_payload *payload, struct json_stream *stream,
2286 struct plugin *plugin)
2287{
2288 json_add_txid(stream, "commitment_txid", &payload->commitment_txid);
2289 json_add_tx(stream, "penalty_tx", payload->penalty_tx);
2290 json_add_channel_id(stream, "channel_id", &payload->channel_id);
2291 json_add_u64(stream, "commitnum", payload->commitnum);
2292}
2293
2294static void
2295commitment_revocation_hook_cb(struct commitment_revocation_payload *p STEALS){

Callers

nothing calls this directly

Calls 4

json_add_txidFunction · 0.50
json_add_txFunction · 0.50
json_add_channel_idFunction · 0.50
json_add_u64Function · 0.50

Tested by

no test coverage detected