@@ -2618,7 +2618,6 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
2618
2618
pending_commitment_tx_conf_thresh = Some ( conf_thresh) ;
2619
2619
}
2620
2620
2621
- #[ rustfmt:: skip]
2622
2621
macro_rules! walk_htlcs {
2623
2622
( $holder_commitment: expr, $counterparty_revoked_commitment: expr, $htlc_iter: expr) => {
2624
2623
for ( htlc, source) in $htlc_iter {
@@ -2868,7 +2867,6 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
2868
2867
}
2869
2868
2870
2869
let mut res = new_hash_map ( ) ;
2871
- #[ rustfmt:: skip]
2872
2870
macro_rules! walk_htlcs {
2873
2871
( $holder_commitment: expr, $htlc_iter: expr) => {
2874
2872
for ( htlc, source) in $htlc_iter {
@@ -3329,7 +3327,6 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
3329
3327
3330
3328
// If the channel is force closed, try to claim the output from this preimage.
3331
3329
// First check if a counterparty commitment transaction has been broadcasted:
3332
- #[ rustfmt:: skip]
3333
3330
macro_rules! claim_htlcs {
3334
3331
( $commitment_number: expr, $txid: expr, $htlcs: expr) => {
3335
3332
let ( htlc_claim_reqs, _) = self . get_counterparty_output_claim_info( $commitment_number, $txid, None , $htlcs) ;
@@ -3836,7 +3833,6 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
3836
3833
let commitment_txid = tx. compute_txid ( ) ; //TODO: This is gonna be a performance bottleneck for watchtowers!
3837
3834
let per_commitment_option = self . funding . counterparty_claimable_outpoints . get ( & commitment_txid) ;
3838
3835
3839
- #[ rustfmt:: skip]
3840
3836
macro_rules! ignore_error {
3841
3837
( $thing : expr ) => {
3842
3838
match $thing {
@@ -4186,13 +4182,12 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
4186
4182
let mut claim_requests = Vec :: new ( ) ;
4187
4183
let mut watch_outputs = Vec :: new ( ) ;
4188
4184
4189
- #[ rustfmt:: skip]
4190
4185
macro_rules! append_onchain_update {
4191
4186
( $updates: expr, $to_watch: expr) => {
4192
4187
claim_requests = $updates. 0 ;
4193
4188
self . broadcasted_holder_revokable_script = $updates. 1 ;
4194
4189
watch_outputs. append( & mut $to_watch) ;
4195
- }
4190
+ } ;
4196
4191
}
4197
4192
4198
4193
// HTLCs set may differ between last and previous holder commitment txn, in case of one them hitting chain, ensure we cancel all HTLCs backward
@@ -4968,7 +4963,6 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
4968
4963
}
4969
4964
}
4970
4965
4971
- #[ rustfmt:: skip]
4972
4966
macro_rules! check_htlc_valid_counterparty {
4973
4967
( $htlc_output: expr, $per_commitment_data: expr) => {
4974
4968
for & ( ref pending_htlc, ref pending_source) in $per_commitment_data {
@@ -4983,7 +4977,6 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
4983
4977
}
4984
4978
}
4985
4979
4986
- #[ rustfmt:: skip]
4987
4980
macro_rules! scan_commitment {
4988
4981
( $htlcs: expr, $tx_info: expr, $holder_tx: expr) => {
4989
4982
for ( ref htlc_output, source_option) in $htlcs {
@@ -5309,7 +5302,6 @@ impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP
5309
5302
5310
5303
let commitment_secrets = Readable :: read ( reader) ?;
5311
5304
5312
- #[ rustfmt:: skip]
5313
5305
macro_rules! read_htlc_in_commitment {
5314
5306
( ) => {
5315
5307
{
@@ -5809,7 +5801,6 @@ mod tests {
5809
5801
5810
5802
let dummy_source = HTLCSource :: dummy ( ) ;
5811
5803
5812
- #[ rustfmt:: skip]
5813
5804
macro_rules! preimages_slice_to_htlcs {
5814
5805
( $preimages_slice: expr) => {
5815
5806
{
@@ -5827,7 +5818,6 @@ mod tests {
5827
5818
}
5828
5819
}
5829
5820
}
5830
- #[ rustfmt:: skip]
5831
5821
macro_rules! preimages_slice_to_htlc_outputs {
5832
5822
( $preimages_slice: expr) => {
5833
5823
preimages_slice_to_htlcs!( $preimages_slice) . into_iter( ) . map( |htlc| ( htlc, None ) ) . collect( )
@@ -5837,7 +5827,6 @@ mod tests {
5837
5827
& bitcoin:: secp256k1:: Message :: from_digest ( [ 42 ; 32 ] ) ,
5838
5828
& SecretKey :: from_slice ( & [ 42 ; 32 ] ) . unwrap ( ) ) ;
5839
5829
5840
- #[ rustfmt:: skip]
5841
5830
macro_rules! test_preimages_exist {
5842
5831
( $preimages_slice: expr, $monitor: expr) => {
5843
5832
for preimage in $preimages_slice {
@@ -5968,7 +5957,6 @@ mod tests {
5968
5957
let pubkey = PublicKey :: from_secret_key ( & secp_ctx, & privkey) ;
5969
5958
5970
5959
use crate :: ln:: channel_keys:: { HtlcKey , HtlcBasepoint } ;
5971
- #[ rustfmt:: skip]
5972
5960
macro_rules! sign_input {
5973
5961
( $sighash_parts: expr, $idx: expr, $amount: expr, $weight: expr, $sum_actual_sigs: expr, $opt_anchors: expr) => {
5974
5962
let htlc = HTLCOutputInCommitment {
0 commit comments