Skip to content

Commit 5355ab9

Browse files
committed
f Add more comments around revoked claim aggregation
1 parent 05e08fd commit 5355ab9

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
@@ -1667,7 +1667,9 @@ fn do_test_revoked_counterparty_htlc_tx_balances(anchors: bool) {
16671667
let revoked_to_self_claim = {
16681668
let mut as_commitment_claim_txn = nodes[0].tx_broadcaster.txn_broadcast();
16691669
assert_eq!(as_commitment_claim_txn.len(), 2);
1670+
// One unpinnable revoked to_self output.
16701671
assert_eq!(as_commitment_claim_txn[0].input.len(), 1);
1672+
// Two pinnable revoked HTLC outputs.
16711673
assert_eq!(as_commitment_claim_txn[1].input.len(), 2);
16721674
check_spends!(as_commitment_claim_txn[0], revoked_local_txn[0]);
16731675
check_spends!(as_commitment_claim_txn[1], revoked_local_txn[0]);
@@ -1955,7 +1957,9 @@ fn do_test_revoked_counterparty_aggregated_claims(anchors: bool) {
19551957

19561958
let mut claim_txn = nodes[1].tx_broadcaster.txn_broadcast();
19571959
assert_eq!(claim_txn.len(), 2);
1960+
// One unpinnable revoked to_self output.
19581961
assert_eq!(claim_txn[0].input.len(), 1);
1962+
// Two pinnable revoked HTLC outputs.
19591963
assert_eq!(claim_txn[1].input.len(), 2);
19601964
check_spends!(claim_txn[0], as_revoked_txn[0]);
19611965
check_spends!(claim_txn[1], as_revoked_txn[0]);

0 commit comments

Comments
 (0)