File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,9 @@ pub struct EigenDaConfig {
106
106
/// URL to an EigenDA RPC endpoint.
107
107
#[ serde( deserialize_with = "parse_url" ) ]
108
108
pub rpc : Url ,
109
+ /// Blob fragment size.
110
+ /// Defaults to 3.5MB, as 4+MB errors out on the server side when checking for inclusion.
111
+ pub fragment_size : NonZeroU32 ,
109
112
// Allocated throughput in MiB for the address corresponding to the key
110
113
// pub throughput: f32,
111
114
}
Original file line number Diff line number Diff line change 1
- use std:: { num :: NonZeroU32 , time:: Duration } ;
1
+ use std:: time:: Duration ;
2
2
3
3
use clock:: SystemClock ;
4
4
use eigenda:: { EigenDAClient , Throughput } ;
@@ -221,10 +221,12 @@ pub fn eigen_block_bundler(
221
221
config : & config:: Config ,
222
222
registry : & Registry ,
223
223
) -> tokio:: task:: JoinHandle < ( ) > {
224
- // blob_size: 3.5MB, 4+MB errors out on the server side when checking for inclusion
225
224
let bundler_factory = services:: EigenBundlerFactory :: new (
226
225
bundle:: Encoder :: new ( config. app . bundle . compression_level ) ,
227
- NonZeroU32 :: new ( 3_500_000 ) . unwrap ( ) , // TODO pass this via config
226
+ match & config. da_layer {
227
+ Some ( DALayer :: EigenDA ( eigen_da) ) => eigen_da. fragment_size ,
228
+ other => panic ! ( "Wrong DA layer configuration for Eigen bundler: {other:?}" ) ,
229
+ } ,
228
230
config. app . bundle . max_fragments_per_bundle ,
229
231
) ;
230
232
You can’t perform that action at this time.
0 commit comments