@@ -1074,9 +1074,10 @@ mod tests {
10741074
10751075 #[ test]
10761076 fn funding_reclassification_does_not_downgrade_an_advanced_record ( ) {
1077- use bitcoin:: hashes:: Hash ;
10781077 use std:: str:: FromStr ;
10791078
1079+ use bitcoin:: hashes:: Hash ;
1080+
10801081 // A splice funding payment wallet sync has already advanced to Succeeded/Confirmed.
10811082 let txid = Txid :: from_byte_array ( [ 7u8 ; 32 ] ) ;
10821083 let id = PaymentId ( txid. to_byte_array ( ) ) ;
@@ -1162,9 +1163,10 @@ mod tests {
11621163
11631164 #[ test]
11641165 fn funding_reclassification_keeps_confirmed_candidate_figures ( ) {
1165- use bitcoin:: hashes:: Hash ;
11661166 use std:: str:: FromStr ;
11671167
1168+ use bitcoin:: hashes:: Hash ;
1169+
11681170 // A funding payment whose first candidate wallet sync has already seen confirm — e.g. the
11691171 // counterparty's broadcast of it was picked up before our own later candidate was
11701172 // classified. The record is unclassified (created by the sync fallthrough).
@@ -1247,9 +1249,10 @@ mod tests {
12471249
12481250 #[ test]
12491251 fn funding_reclassification_merges_figures_for_the_confirmed_candidate ( ) {
1250- use bitcoin:: hashes:: Hash ;
12511252 use std:: str:: FromStr ;
12521253
1254+ use bitcoin:: hashes:: Hash ;
1255+
12531256 // Wallet sync confirmed the transaction before classification ran, so the record carries
12541257 // the wallet's own view of amount/fee, which cannot represent our contribution to a shared
12551258 // funding output.
@@ -1315,11 +1318,12 @@ mod tests {
13151318
13161319 #[ tokio:: test]
13171320 async fn funding_classification_merge_preserves_advanced_record ( ) {
1318- use bitcoin:: hashes:: Hash ;
1319- use lightning:: util:: test_utils:: TestLogger ;
13201321 use std:: str:: FromStr ;
13211322 use std:: sync:: Arc ;
13221323
1324+ use bitcoin:: hashes:: Hash ;
1325+ use lightning:: util:: test_utils:: TestLogger ;
1326+
13231327 use crate :: data_store:: DataStore ;
13241328 use crate :: io:: test_utils:: InMemoryStore ;
13251329 use crate :: types:: { DynStore , DynStoreWrapper } ;
0 commit comments