Skip to content

Commit

Permalink
Merge pull request #129 from NethermindEth/mu/events-monitoring
Browse files Browse the repository at this point in the history
Improve event monitoring
  • Loading branch information
mikhailUshakoff authored Sep 19, 2024
2 parents 0f88573 + 71f92ab commit 58f33ea
Show file tree
Hide file tree
Showing 9 changed files with 186 additions and 114 deletions.
6 changes: 2 additions & 4 deletions Node/src/ethereum_l1/block_proposed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use alloy::{contract::EventPoller, sol};
use alloy::{contract::EventPoller, pubsub::PubSubFrontend, sol};
use anyhow::Error;

sol!(
Expand Down Expand Up @@ -30,6 +30,4 @@ impl BlockProposed {
}
}

pub struct EventPollerBlockProposed(
pub EventPoller<alloy::transports::http::Http<reqwest::Client>, TaikoEvents::BlockProposed>,
);
pub struct EventPollerBlockProposed(pub EventPoller<PubSubFrontend, TaikoEvents::BlockProposed>);
3 changes: 2 additions & 1 deletion Node/src/ethereum_l1/el_with_cl_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ mod tests {

let anvil = Anvil::new().try_spawn().unwrap();
let rpc_url: reqwest::Url = anvil.endpoint().parse().unwrap();
let ws_rpc_url = anvil.ws_endpoint();
let private_key = anvil.keys()[0].clone();
let el = ExecutionLayer::new_from_pk(rpc_url, private_key)
let el = ExecutionLayer::new_from_pk(ws_rpc_url, rpc_url, private_key)
.await
.unwrap();

Expand Down
Loading

0 comments on commit 58f33ea

Please sign in to comment.