File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
beacon_node/builder_client/src Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,8 @@ use serde::Serialize;
1818use ssz:: Encode ;
1919use std:: str:: FromStr ;
2020use std:: sync:: atomic:: { AtomicBool , Ordering } ;
21- use std:: time:: Duration ;
22-
2321use std:: sync:: Arc ;
22+ use std:: time:: Duration ;
2423
2524pub const DEFAULT_TIMEOUT_MILLIS : u64 = 15000 ;
2625
@@ -149,6 +148,7 @@ impl BuilderHttpClient {
149148 }
150149 }
151150
151+ /// Return `true` if the most recently received response from the builder had SSZ Content-Type.
152152 pub fn is_ssz_enabled ( & self ) -> bool {
153153 self . ssz_enabled . load ( Ordering :: SeqCst )
154154 }
Original file line number Diff line number Diff line change @@ -171,17 +171,6 @@ impl<E: EthSpec> ForkVersionDeserialize for SignedBuilderBid<E> {
171171}
172172
173173impl < E : EthSpec > SignedBuilderBid < E > {
174- pub fn from_ssz_bytes ( bytes : & [ u8 ] , fork_name : ForkName ) -> Result < Self , ssz:: DecodeError > {
175- let mut builder = ssz:: SszDecoderBuilder :: new ( bytes) ;
176- builder. register_anonymous_variable_length_item ( ) ?;
177- builder. register_type :: < Signature > ( ) ?;
178- let mut decoder = builder. build ( ) ?;
179- let message = decoder
180- . decode_next_with ( |bytes| BuilderBid :: from_ssz_bytes_by_fork ( bytes, fork_name) ) ?;
181- let signature = decoder. decode_next ( ) ?;
182- Ok ( Self { message, signature } )
183- }
184-
185174 pub fn verify_signature ( & self , spec : & ChainSpec ) -> bool {
186175 self . message
187176 . pubkey ( )
You can’t perform that action at this time.
0 commit comments