Skip to content

Commit

Permalink
update to latest ethereum-consensus
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Oct 25, 2023
1 parent 4846402 commit 2b84d79
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ default-members = ["bin/mev"]
version = "0.3.0"

[workspace.dependencies]
ethereum-consensus = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "69d1a14585ef190bf32979a972a9794e863ee18d" }
beacon-api-client = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "69d1a14585ef190bf32979a972a9794e863ee18d" }
ethereum-consensus = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "48b9a8110d6eb9f8a8b328666b96bb1ff1db85b6" }
beacon-api-client = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "48b9a8110d6eb9f8a8b328666b96bb1ff1db85b6" }

reth-payload-builder = { git = "https://github.com/paradigmxyz/reth", rev = "5dd5555c5c7d8e43420e273e7005b8af63a847a5" }
reth-primitives = { git = "https://github.com/paradigmxyz/reth", rev = "5dd5555c5c7d8e43420e273e7005b8af63a847a5" }
Expand Down
2 changes: 1 addition & 1 deletion mev-boost-rs/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Service {
}
}

let context = Context::try_from(&network)?;
let context = Context::try_from(network)?;
let relays = relays.into_iter().map(Relay::from);
let clock = context.clock().unwrap_or_else(|| {
let genesis_time = networks::typical_genesis_time(&context);
Expand Down
2 changes: 1 addition & 1 deletion mev-boost-rs/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async fn test_end_to_end() {
let genesis_validators_root = Root::try_from([23u8; 32].as_ref()).unwrap();

let network = Network::Sepolia;
let context = Context::try_from(&network).unwrap();
let context = Context::try_from(network.clone()).unwrap();

// NOTE: non-default secret key required. otherwise public key is point at infinity and
// signature verification will fail.
Expand Down
3 changes: 1 addition & 2 deletions mev-build-rs/src/reth_builder/service_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ impl RethNodeCommandConfig for ServiceExt {
Reth: RethNodeComponents,
{
let build_config = self.config.clone();
let network = &self.network;
let context = Arc::new(Context::try_from(network)?);
let context = Arc::new(Context::try_from(self.network.clone())?);
let clock = context.clock().unwrap_or_else(|| {
let genesis_time = networks::typical_genesis_time(&context);
context.clock_at(genesis_time)
Expand Down
2 changes: 1 addition & 1 deletion mev-relay-rs/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl Service {
pub async fn spawn(self) -> Result<ServiceHandle, Error> {
let Self { host, port, beacon_node, network, secret_key } = self;

let context = Context::try_from(&network)?;
let context = Context::try_from(network)?;
let clock = context.clock().unwrap_or_else(|| {
let genesis_time = networks::typical_genesis_time(&context);
context.clock_at(genesis_time)
Expand Down

0 comments on commit 2b84d79

Please sign in to comment.