@@ -2,7 +2,7 @@ use crate::{
22 quincey:: Quincey ,
33 tasks:: {
44 block:: { cfg:: SignetCfgEnv , sim:: SimResult } ,
5- submit:: { BuilderHelperTask , FlashbotsTask } ,
5+ submit:: FlashbotsTask ,
66 } ,
77} ;
88use alloy:: {
@@ -188,6 +188,7 @@ pub struct BuilderConfig {
188188 /// The slot calculator for the builder.
189189 pub slot_calculator : SlotCalculator ,
190190
191+ // TODO: Make this compatible with FromEnv again, somehow it broke
191192 /// The signet system constants.
192193 pub constants : SignetSystemConstants ,
193194}
@@ -329,19 +330,10 @@ impl BuilderConfig {
329330 & self ,
330331 tx_channel : UnboundedSender < TxHash > ,
331332 ) -> eyre:: Result < ( UnboundedSender < SimResult > , JoinHandle < ( ) > ) > {
332- match & self . flashbots_endpoint {
333- Some ( url) => {
334- info ! ( url = url. as_str( ) , "spawning flashbots submit task" ) ;
335- let submit = FlashbotsTask :: new ( self . clone ( ) , tx_channel) . await ?;
336- let ( submit_channel, submit_jh) = submit. spawn ( ) ;
337- Ok ( ( submit_channel, submit_jh) )
338- }
339- None => {
340- info ! ( "spawning builder helper submit task" ) ;
341- let submit = BuilderHelperTask :: new ( self . clone ( ) , tx_channel) . await ?;
342- let ( submit_channel, submit_jh) = submit. spawn ( ) ;
343- Ok ( ( submit_channel, submit_jh) )
344- }
345- }
333+ let url = self . flashbots_endpoint . as_ref ( ) . expect ( "flashbots endpoint must be configured" ) ;
334+ info ! ( url = url. as_str( ) , "spawning flashbots submit task" ) ;
335+ let submit = FlashbotsTask :: new ( self . clone ( ) , tx_channel) . await ?;
336+ let ( submit_channel, submit_jh) = submit. spawn ( ) ;
337+ Ok ( ( submit_channel, submit_jh) )
346338 }
347339}
0 commit comments