Skip to content

Commit 3eee2d1

Browse files
committed
Minor cleanups
1 parent df16f95 commit 3eee2d1

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

beacon_node/builder_client/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ use serde::Serialize;
1818
use ssz::Encode;
1919
use std::str::FromStr;
2020
use std::sync::atomic::{AtomicBool, Ordering};
21-
use std::time::Duration;
22-
2321
use std::sync::Arc;
22+
use std::time::Duration;
2423

2524
pub 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
}

consensus/types/src/builder_bid.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,6 @@ impl<E: EthSpec> ForkVersionDeserialize for SignedBuilderBid<E> {
171171
}
172172

173173
impl<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()

0 commit comments

Comments
 (0)