@@ -194,9 +194,12 @@ impl ScrollRollupNodeConfig {
194
194
. await
195
195
. expect ( "failed to perform migration" ) ;
196
196
} else {
197
- scroll_migration:: Migrator :: < ( ) > :: up ( db. get_connection ( ) , None )
198
- . await
199
- . expect ( "failed to perform migration (custom chain)" ) ;
197
+ scroll_migration:: Migrator :: < scroll_migration:: ScrollDevMigrationInfo > :: up (
198
+ db. get_connection ( ) ,
199
+ None ,
200
+ )
201
+ . await
202
+ . expect ( "failed to perform migration (custom chain)" ) ;
200
203
}
201
204
202
205
// Wrap the database in an Arc
@@ -222,7 +225,7 @@ impl ScrollRollupNodeConfig {
222
225
ctx. network . clone ( ) ,
223
226
events,
224
227
eth_wire_listener,
225
- td_constant ( named_chain ) ,
228
+ td_constant ( chain_spec . chain ( ) . named ( ) ) ,
226
229
) ;
227
230
228
231
// On startup we replay the latest batch of blocks from the database as such we set the safe
@@ -653,10 +656,10 @@ pub struct GasPriceOracleArgs {
653
656
}
654
657
655
658
/// Returns the total difficulty constant for the given chain.
656
- const fn td_constant ( chain : NamedChain ) -> U128 {
659
+ const fn td_constant ( chain : Option < NamedChain > ) -> U128 {
657
660
match chain {
658
- NamedChain :: Scroll => constants:: SCROLL_MAINNET_TD_CONSTANT ,
659
- NamedChain :: ScrollSepolia => constants:: SCROLL_SEPOLIA_TD_CONSTANT ,
661
+ Some ( NamedChain :: Scroll ) => constants:: SCROLL_MAINNET_TD_CONSTANT ,
662
+ Some ( NamedChain :: ScrollSepolia ) => constants:: SCROLL_SEPOLIA_TD_CONSTANT ,
660
663
_ => U128 :: ZERO , // Default to zero for other chains
661
664
}
662
665
}
0 commit comments