Skip to content

Commit

Permalink
chore: rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Jul 23, 2024
1 parent 4ff1219 commit 84d27ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 2 additions & 0 deletions bolt-sidecar/src/builder/payload_builder.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::fmt;

use alloy::{
eips::{calc_excess_blob_gas, calc_next_block_base_fee, eip1559::BaseFeeParams},
primitives::{Address, Bytes, B256, U256},
Expand Down
17 changes: 7 additions & 10 deletions bolt-sidecar/src/driver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{
time::{Duration, Instant},
};

use alloy_rpc_types_beacon::events::HeadEvent;
use alloy::rpc::types::beacon::events::HeadEvent;
use futures::Future;
use tokio::sync::mpsc;

Expand Down Expand Up @@ -121,18 +121,15 @@ impl<C: StateFetcher + Unpin, S: SignerBLS + Unpin> SidecarDriver<C, S> {
}
};

let sender = match self
if let Err(e) = self
.execution_state
.validate_commitment_request(&api_event.request)
.await
{
Ok(sender) => sender,
Err(e) => {
tracing::error!("Failed to commit request: {:?}", e);
let _ = api_event.response_tx.send(Err(ApiError::Validation(e)));
return;
}
};
tracing::error!("Failed to commit request: {:?}", e);
let _ = api_event.response_tx.send(Err(ApiError::Validation(e)));
return;
}

// TODO: match when we have more request types
let CommitmentRequest::Inclusion(request) = api_event.request;
Expand All @@ -147,7 +144,7 @@ impl<C: StateFetcher + Unpin, S: SignerBLS + Unpin> SidecarDriver<C, S> {
// TODO: review all this `clone` usage

// parse the request into constraints and sign them with the sidecar signer
let message = ConstraintsMessage::build(validator_index, request, sender);
let message = ConstraintsMessage::build(validator_index, request);
let signature = match self.signer.sign(&message.digest()) {
Ok(sig) => sig.to_string(),
Err(e) => {
Expand Down

0 comments on commit 84d27ce

Please sign in to comment.