@@ -89,9 +89,9 @@ fn chanmon_fail_from_stale_commitment() {
89
89
90
90
#[ test]
91
91
fn chanmon_claim_value_coop_close ( ) {
92
- // Tests .unwrap(). get_claimable_balances` returns the correct values across a simple cooperative claim.
92
+ // Tests ` get_claimable_balances` returns the correct values across a simple cooperative claim.
93
93
// Specifically, this tests that the channel non-HTLC balances show up in
94
- // .unwrap(). get_claimable_balances` until the cooperative claims have confirmed and generated a
94
+ // ` get_claimable_balances` until the cooperative claims have confirmed and generated a
95
95
// `SpendableOutputs` event, and no longer.
96
96
let chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
97
97
let node_cfgs = create_node_cfgs ( 2 , & chanmon_cfgs) ;
@@ -186,9 +186,9 @@ fn sorted_vec<T: Ord>(mut v: Vec<T>) -> Vec<T> {
186
186
}
187
187
188
188
fn do_test_claim_value_force_close ( prev_commitment_tx : bool ) {
189
- // Tests .unwrap(). get_claimable_balances` with an HTLC across a force-close.
189
+ // Tests ` get_claimable_balances` with an HTLC across a force-close.
190
190
// We build a channel with an HTLC pending, then force close the channel and check that the
191
- // .unwrap(). get_claimable_balances` return value is correct as transactions confirm on-chain.
191
+ // ` get_claimable_balances` return value is correct as transactions confirm on-chain.
192
192
let mut chanmon_cfgs = create_chanmon_cfgs ( 2 ) ;
193
193
if prev_commitment_tx {
194
194
// We broadcast a second-to-latest commitment transaction, without providing the revocation
@@ -327,7 +327,7 @@ fn do_test_claim_value_force_close(prev_commitment_tx: bool) {
327
327
328
328
// Once the commitment transaction confirms, we will wait until ANTI_REORG_DELAY until we
329
329
// generate any `SpendableOutputs` events. Thus, the same balances will still be listed
330
- // available in .unwrap(). get_claimable_balances`. However, both will swap from `ClaimableOnClose` to
330
+ // available in ` get_claimable_balances`. However, both will swap from `ClaimableOnClose` to
331
331
// other Balance variants, as close has already happened.
332
332
assert ! ( nodes[ 0 ] . chain_monitor. chain_monitor. get_and_clear_pending_events( ) . is_empty( ) ) ;
333
333
assert ! ( nodes[ 1 ] . chain_monitor. chain_monitor. get_and_clear_pending_events( ) . is_empty( ) ) ;
0 commit comments