File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
crates/rbuilder/src/mev_boost Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -787,6 +787,12 @@ impl RelayClient {
787787 bundle_ids. join ( "," )
788788 } ;
789789 builder = builder. header ( BUNDLE_HASHES_HEADER , bundle_ids) ;
790+
791+ let sent_at = std:: time:: SystemTime :: now ( )
792+ . duration_since ( std:: time:: UNIX_EPOCH )
793+ . unwrap_or_default ( )
794+ . as_secs_f64 ( ) ;
795+ builder = builder. header ( "X-BuilderNet-SentAt" , sent_at. to_string ( ) ) ;
790796 }
791797 }
792798
@@ -830,6 +836,18 @@ impl RelayClient {
830836 "na" . parse ( ) . map_err ( |_| SubmitBlockErr :: InvalidHeader ) ?,
831837 ) ;
832838
839+ let sent_at = std:: time:: SystemTime :: now ( )
840+ . duration_since ( std:: time:: UNIX_EPOCH )
841+ . unwrap_or_default ( )
842+ . as_secs_f64 ( ) ;
843+ request. metadata_mut ( ) . insert (
844+ "x-buildernet-sentat" ,
845+ sent_at
846+ . to_string ( )
847+ . parse ( )
848+ . map_err ( |_| SubmitBlockErr :: InvalidHeader ) ?,
849+ ) ;
850+
833851 let response = client. lock ( ) . await . submit_block ( request) . await ?;
834852 Ok ( response. into_inner ( ) )
835853 }
You can’t perform that action at this time.
0 commit comments