Disable notifier logging from dummy eth1 backend (#2680)
This commit is contained in:
parent
7975ceff97
commit
d6fda44620
@ -223,6 +223,11 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns `true` if the "dummy" backend is being used.
|
||||||
|
pub fn is_dummy_backend(&self) -> bool {
|
||||||
|
self.use_dummy_backend
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns the `Eth1Data` that should be included in a block being produced for the given
|
/// Returns the `Eth1Data` that should be included in a block being produced for the given
|
||||||
/// `state`.
|
/// `state`.
|
||||||
pub fn eth1_data_for_block_production(
|
pub fn eth1_data_for_block_production(
|
||||||
|
@ -302,6 +302,11 @@ fn eth1_logging<T: BeaconChainTypes>(beacon_chain: &BeaconChain<T>, log: &Logger
|
|||||||
if let Ok(head_info) = beacon_chain.head_info() {
|
if let Ok(head_info) = beacon_chain.head_info() {
|
||||||
// Perform some logging about the eth1 chain
|
// Perform some logging about the eth1 chain
|
||||||
if let Some(eth1_chain) = beacon_chain.eth1_chain.as_ref() {
|
if let Some(eth1_chain) = beacon_chain.eth1_chain.as_ref() {
|
||||||
|
// No need to do logging if using the dummy backend.
|
||||||
|
if eth1_chain.is_dummy_backend() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(status) =
|
if let Some(status) =
|
||||||
eth1_chain.sync_status(head_info.genesis_time, current_slot_opt, &beacon_chain.spec)
|
eth1_chain.sync_status(head_info.genesis_time, current_slot_opt, &beacon_chain.spec)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user