File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use alloy::{
7
7
use signet_sim:: BuiltBlock ;
8
8
use signet_zenith:: BundleHelper :: FillPermit2 ;
9
9
use std:: time:: UNIX_EPOCH ;
10
+ use tracing:: debug;
10
11
11
12
/// Returns the current timestamp in seconds since the UNIX epoch.
12
13
pub ( crate ) fn now ( ) -> u64 {
@@ -40,14 +41,11 @@ pub fn populate_initial_gas(req: &mut TransactionRequest, prev_header: &Header)
40
41
let base_fee_per_gas = prev_header
41
42
. next_block_base_fee ( BaseFeeParams :: ethereum ( ) )
42
43
. expect ( "signet deployed after 1559 active" ) as u128 ;
43
-
44
- let blob_basefee = prev_header
45
- . next_block_blob_fee ( BlobParams :: prague ( ) )
46
- . expect ( "signet deployed after 4844 active" ) ;
44
+ let blob_basefee = prev_header. next_block_blob_fee ( BlobParams :: prague ( ) ) ;
47
45
48
46
req. max_priority_fee_per_gas = Some ( STARTING_MPFPG ) ;
49
47
req. max_fee_per_gas = Some ( ( base_fee_per_gas * 1025 / 1024 ) + STARTING_MPFPG ) ;
50
- req. max_fee_per_blob_gas = Some ( blob_basefee) ;
48
+ req. max_fee_per_blob_gas = Some ( blob_basefee. unwrap_or ( BlobParams :: prague ( ) . min_blob_fee ) ) ;
51
49
}
52
50
53
51
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments