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

Function commitment_revocation_hook_serialize

lightningd/peer_htlcs.c:2565–2573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2563};
2564
2565static void commitment_revocation_hook_serialize(
2566 struct commitment_revocation_payload *payload, struct json_stream *stream,
2567 struct plugin *plugin)
2568{
2569 json_add_txid(stream, "commitment_txid", &payload->commitment_txid);
2570 json_add_tx(stream, "penalty_tx", payload->penalty_tx);
2571 json_add_channel_id(stream, "channel_id", &payload->channel_id);
2572 json_add_u64(stream, "commitnum", payload->commitnum);
2573}
2574
2575static void
2576commitment_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