Skip to content

Commit 099afbe

Browse files
committed
f Add more comments around revoked claim aggregation
1 parent e234dc4 commit 099afbe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/monitor_tests.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,9 @@ fn do_test_revoked_counterparty_htlc_tx_balances(anchors: bool) {
16821682
let revoked_to_self_claim = {
16831683
let mut as_commitment_claim_txn = nodes[0].tx_broadcaster.txn_broadcast();
16841684
assert_eq!(as_commitment_claim_txn.len(), 2);
1685+
// One unpinnable revoked to_self output.
16851686
assert_eq!(as_commitment_claim_txn[0].input.len(), 1);
1687+
// Two pinnable revoked HTLC outputs.
16861688
assert_eq!(as_commitment_claim_txn[1].input.len(), 2);
16871689
check_spends!(as_commitment_claim_txn[0], revoked_local_txn[0]);
16881690
check_spends!(as_commitment_claim_txn[1], revoked_local_txn[0]);
@@ -1970,7 +1972,9 @@ fn do_test_revoked_counterparty_aggregated_claims(anchors: bool) {
19701972

19711973
let mut claim_txn = nodes[1].tx_broadcaster.txn_broadcast();
19721974
assert_eq!(claim_txn.len(), 2);
1975+
// One unpinnable revoked to_self output.
19731976
assert_eq!(claim_txn[0].input.len(), 1);
1977+
// Two pinnable revoked HTLC outputs.
19741978
assert_eq!(claim_txn[1].input.len(), 2);
19751979
check_spends!(claim_txn[0], as_revoked_txn[0]);
19761980
check_spends!(claim_txn[1], as_revoked_txn[0]);

0 commit comments

Comments
 (0)