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 {
787
787
bundle_ids. join ( "," )
788
788
} ;
789
789
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 ( ) ) ;
790
796
}
791
797
}
792
798
@@ -830,6 +836,18 @@ impl RelayClient {
830
836
"na" . parse ( ) . map_err ( |_| SubmitBlockErr :: InvalidHeader ) ?,
831
837
) ;
832
838
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
+
833
851
let response = client. lock ( ) . await . submit_block ( request) . await ?;
834
852
Ok ( response. into_inner ( ) )
835
853
}
You can’t perform that action at this time.
0 commit comments