mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-22 11:22:59 +03:00
Merge pull request #280 from kinode-dao/hf/hotfix-2
hotfix: fix a bad merge
This commit is contained in:
commit
1a3de8d46a
@ -71,6 +71,7 @@ pub enum Resp {
|
||||
}
|
||||
|
||||
fn fetch_logs(eth_provider: ð::Provider, filter: ð::Filter) -> Vec<eth::Log> {
|
||||
#[cfg(not(feature = "simulation-mode"))]
|
||||
loop {
|
||||
match eth_provider.get_logs(filter) {
|
||||
Ok(res) => return res,
|
||||
@ -87,6 +88,7 @@ fn fetch_logs(eth_provider: ð::Provider, filter: ð::Filter) -> Vec<eth::Lo
|
||||
|
||||
#[allow(unused_variables)]
|
||||
fn subscribe_to_logs(eth_provider: ð::Provider, filter: eth::Filter) {
|
||||
#[cfg(not(feature = "simulation-mode"))]
|
||||
loop {
|
||||
match eth_provider.subscribe(1, filter.clone()) {
|
||||
Ok(()) => break,
|
||||
@ -97,6 +99,7 @@ fn subscribe_to_logs(eth_provider: ð::Provider, filter: eth::Filter) {
|
||||
}
|
||||
}
|
||||
}
|
||||
#[cfg(not(feature = "simulation-mode"))]
|
||||
println!("subscribed to logs successfully");
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,7 @@ sol! {
|
||||
}
|
||||
|
||||
fn subscribe_to_logs(eth_provider: ð::Provider, from_block: u64, filter: eth::Filter) {
|
||||
#[cfg(not(feature = "simulation-mode"))]
|
||||
loop {
|
||||
match eth_provider.subscribe(1, filter.clone().from_block(from_block)) {
|
||||
Ok(()) => break,
|
||||
@ -109,6 +110,7 @@ fn subscribe_to_logs(eth_provider: ð::Provider, from_block: u64, filter: eth:
|
||||
}
|
||||
}
|
||||
}
|
||||
#[cfg(not(feature = "simulation-mode"))]
|
||||
println!("subscribed to logs successfully");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user