@@ -2175,7 +2175,7 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2175
2175
macro_rules! claim_htlcs {
2176
2176
( $commitment_number: expr, $txid: expr) => {
2177
2177
let ( htlc_claim_reqs, _) = self . get_counterparty_output_claim_info( $commitment_number, $txid, None ) ;
2178
- self . onchain_tx_handler. update_claims_view ( & Vec :: new ( ) , htlc_claim_reqs, self . best_block. height( ) , self . best_block. height( ) , broadcaster, fee_estimator, logger) ;
2178
+ self . onchain_tx_handler. update_claims_view_from_requests ( htlc_claim_reqs, self . best_block. height( ) , self . best_block. height( ) , broadcaster, fee_estimator, logger) ;
2179
2179
}
2180
2180
}
2181
2181
if let Some ( txid) = self . current_counterparty_commitment_txid {
@@ -2201,10 +2201,10 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2201
2201
// block. Even if not, its a reasonable metric for the bump criteria on the HTLC
2202
2202
// transactions.
2203
2203
let ( claim_reqs, _) = self . get_broadcasted_holder_claims ( & self . current_holder_commitment_tx , self . best_block . height ( ) ) ;
2204
- self . onchain_tx_handler . update_claims_view ( & Vec :: new ( ) , claim_reqs, self . best_block . height ( ) , self . best_block . height ( ) , broadcaster, fee_estimator, logger) ;
2204
+ self . onchain_tx_handler . update_claims_view_from_requests ( claim_reqs, self . best_block . height ( ) , self . best_block . height ( ) , broadcaster, fee_estimator, logger) ;
2205
2205
if let Some ( ref tx) = self . prev_holder_signed_commitment_tx {
2206
2206
let ( claim_reqs, _) = self . get_broadcasted_holder_claims ( & tx, self . best_block . height ( ) ) ;
2207
- self . onchain_tx_handler . update_claims_view ( & Vec :: new ( ) , claim_reqs, self . best_block . height ( ) , self . best_block . height ( ) , broadcaster, fee_estimator, logger) ;
2207
+ self . onchain_tx_handler . update_claims_view_from_requests ( claim_reqs, self . best_block . height ( ) , self . best_block . height ( ) , broadcaster, fee_estimator, logger) ;
2208
2208
}
2209
2209
}
2210
2210
}
@@ -2291,8 +2291,8 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2291
2291
PackageSolvingData :: HolderFundingOutput ( funding_output) ,
2292
2292
best_block_height, false , best_block_height,
2293
2293
) ;
2294
- self . onchain_tx_handler . update_claims_view (
2295
- & [ ] , vec ! [ commitment_package] , best_block_height, best_block_height,
2294
+ self . onchain_tx_handler . update_claims_view_from_requests (
2295
+ vec ! [ commitment_package] , best_block_height, best_block_height,
2296
2296
broadcaster, & bounded_fee_estimator, logger,
2297
2297
) ;
2298
2298
}
@@ -2930,7 +2930,8 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
2930
2930
/// Update state for new block(s)/transaction(s) confirmed. Note that the caller must update
2931
2931
/// `self.best_block` before calling if a new best blockchain tip is available. More
2932
2932
/// concretely, `self.best_block` must never be at a lower height than `conf_height`, avoiding
2933
- /// complexity especially in `OnchainTx::update_claims_view`.
2933
+ /// complexity especially in
2934
+ /// `OnchainTx::update_claims_view_from_requests`/`OnchainTx::update_claims_view_from_matched_txn`.
2934
2935
///
2935
2936
/// `conf_height` should be set to the height at which any new transaction(s)/block(s) were
2936
2937
/// confirmed at, even if it is not the current best height.
@@ -3053,7 +3054,8 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
3053
3054
}
3054
3055
}
3055
3056
3056
- self . onchain_tx_handler . update_claims_view ( & txn_matched, claimable_outpoints, conf_height, self . best_block . height ( ) , broadcaster, fee_estimator, logger) ;
3057
+ self . onchain_tx_handler . update_claims_view_from_requests ( claimable_outpoints, conf_height, self . best_block . height ( ) , broadcaster, fee_estimator, logger) ;
3058
+ self . onchain_tx_handler . update_claims_view_from_matched_txn ( & txn_matched, conf_height, conf_hash, self . best_block . height ( ) , broadcaster, fee_estimator, logger) ;
3057
3059
3058
3060
// Determine new outputs to watch by comparing against previously known outputs to watch,
3059
3061
// updating the latter in the process.
0 commit comments