mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +01:00
commit_tx: keep permutation map.
This lets us map the HTLCs back to outputs when txs occur onchain. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -304,7 +304,8 @@ void queue_pkt_commit(struct peer *peer)
|
||||
peer->anchor.index,
|
||||
peer->anchor.satoshis,
|
||||
&ci->revocation_hash,
|
||||
ci->cstate);
|
||||
ci->cstate,
|
||||
&ci->map);
|
||||
|
||||
log_debug(peer->log, "Signing tx for %u/%u msatoshis, %zu/%zu htlcs",
|
||||
ci->cstate->a.pay_msat,
|
||||
@@ -693,7 +694,8 @@ Pkt *accept_pkt_commit(struct peer *peer, const Pkt *pkt)
|
||||
peer->anchor.index,
|
||||
peer->anchor.satoshis,
|
||||
&ci->revocation_hash,
|
||||
ci->cstate);
|
||||
ci->cstate,
|
||||
&ci->map);
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user