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

Function commitment_revocation_hook_serialize

lightningd/peer_htlcs.c:2661–2669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2659};
2660
2661static void commitment_revocation_hook_serialize(
2662 struct commitment_revocation_payload *payload, struct json_stream *stream,
2663 struct plugin *plugin)
2664{
2665 json_add_txid(stream, "commitment_txid", &payload->commitment_txid);
2666 json_add_tx(stream, "penalty_tx", payload->penalty_tx);
2667 json_add_channel_id(stream, "channel_id", &payload->channel_id);
2668 json_add_u64(stream, "commitnum", payload->commitnum);
2669}
2670
2671static void
2672commitment_revocation_hook_cb(struct commitment_revocation_payload *p STEALS){

Callers

nothing calls this directly

Calls 4

json_add_txidFunction · 0.85
json_add_txFunction · 0.85
json_add_channel_idFunction · 0.85
json_add_u64Function · 0.85

Tested by

no test coverage detected