@@ -327,7 +327,8 @@ async fn test_utxo_scanner_recovery() {
327327 let chain_metadata = ChainMetadata {
328328 best_block_height : NUM_BLOCKS - 1 ,
329329 best_block_hash : block_headers. get ( & ( NUM_BLOCKS - 1 ) ) . unwrap ( ) . clone ( ) . hash ( ) . to_vec ( ) ,
330- accumulated_difficulty : Vec :: new ( ) ,
330+ accumulated_difficulty_low : Vec :: new ( ) ,
331+ accumulated_difficulty_high : Vec :: new ( ) ,
331332 pruned_height : 0 ,
332333 timestamp : 0 ,
333334 } ;
@@ -426,7 +427,8 @@ async fn test_utxo_scanner_recovery_with_restart() {
426427 let chain_metadata = ChainMetadata {
427428 best_block_height : NUM_BLOCKS - 1 ,
428429 best_block_hash : block_headers. get ( & ( NUM_BLOCKS - 1 ) ) . unwrap ( ) . clone ( ) . hash ( ) . to_vec ( ) ,
429- accumulated_difficulty : Vec :: new ( ) ,
430+ accumulated_difficulty_low : Vec :: new ( ) ,
431+ accumulated_difficulty_high : Vec :: new ( ) ,
430432 pruned_height : 0 ,
431433 timestamp : 0 ,
432434 } ;
@@ -563,7 +565,8 @@ async fn test_utxo_scanner_recovery_with_restart_and_reorg() {
563565 let chain_metadata = ChainMetadata {
564566 best_block_height : NUM_BLOCKS - 1 ,
565567 best_block_hash : block_headers. get ( & ( NUM_BLOCKS - 1 ) ) . unwrap ( ) . clone ( ) . hash ( ) . to_vec ( ) ,
566- accumulated_difficulty : Vec :: new ( ) ,
568+ accumulated_difficulty_low : Vec :: new ( ) ,
569+ accumulated_difficulty_high : Vec :: new ( ) ,
567570 pruned_height : 0 ,
568571 timestamp : 0 ,
569572 } ;
@@ -643,7 +646,8 @@ async fn test_utxo_scanner_recovery_with_restart_and_reorg() {
643646 let chain_metadata = ChainMetadata {
644647 best_block_height : 9 ,
645648 best_block_hash : block_headers. get ( & 9 ) . unwrap ( ) . clone ( ) . hash ( ) . to_vec ( ) ,
646- accumulated_difficulty : Vec :: new ( ) ,
649+ accumulated_difficulty_low : Vec :: new ( ) ,
650+ accumulated_difficulty_high : Vec :: new ( ) ,
647651 pruned_height : 0 ,
648652 timestamp : 0 ,
649653 } ;
@@ -773,7 +777,8 @@ async fn test_utxo_scanner_scanned_block_cache_clearing() {
773777 . clone ( )
774778 . hash ( )
775779 . to_vec ( ) ,
776- accumulated_difficulty : Vec :: new ( ) ,
780+ accumulated_difficulty_low : Vec :: new ( ) ,
781+ accumulated_difficulty_high : Vec :: new ( ) ,
777782 pruned_height : 0 ,
778783 timestamp : 0 ,
779784 } ;
@@ -871,7 +876,8 @@ async fn test_utxo_scanner_one_sided_payments() {
871876 let chain_metadata = ChainMetadata {
872877 best_block_height : NUM_BLOCKS - 1 ,
873878 best_block_hash : block_headers. get ( & ( NUM_BLOCKS - 1 ) ) . unwrap ( ) . clone ( ) . hash ( ) . to_vec ( ) ,
874- accumulated_difficulty : Vec :: new ( ) ,
879+ accumulated_difficulty_low : Vec :: new ( ) ,
880+ accumulated_difficulty_high : Vec :: new ( ) ,
875881 pruned_height : 0 ,
876882 timestamp : 0 ,
877883 } ;
@@ -976,7 +982,8 @@ async fn test_utxo_scanner_one_sided_payments() {
976982 let chain_metadata = ChainMetadata {
977983 best_block_height : NUM_BLOCKS ,
978984 best_block_hash : block_headers. get ( & ( NUM_BLOCKS ) ) . unwrap ( ) . clone ( ) . hash ( ) . to_vec ( ) ,
979- accumulated_difficulty : Vec :: new ( ) ,
985+ accumulated_difficulty_low : Vec :: new ( ) ,
986+ accumulated_difficulty_high : Vec :: new ( ) ,
980987 pruned_height : 0 ,
981988 timestamp : 0 ,
982989 } ;
@@ -1047,7 +1054,8 @@ async fn test_birthday_timestamp_over_chain() {
10471054 let chain_metadata = ChainMetadata {
10481055 best_block_height : NUM_BLOCKS - 1 ,
10491056 best_block_hash : block_headers. get ( & ( NUM_BLOCKS - 1 ) ) . unwrap ( ) . clone ( ) . hash ( ) . to_vec ( ) ,
1050- accumulated_difficulty : Vec :: new ( ) ,
1057+ accumulated_difficulty_low : Vec :: new ( ) ,
1058+ accumulated_difficulty_high : Vec :: new ( ) ,
10511059 pruned_height : 0 ,
10521060 timestamp : 0 ,
10531061 } ;
0 commit comments