Skip to content

Commit

Permalink
Always log latest Ethereum block height at debug
Browse files Browse the repository at this point in the history
  • Loading branch information
james-chf committed Aug 4, 2022
1 parent 78b9cd9 commit 978fe79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/src/lib/node/ledger/ethereum_node/oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub mod oracle_process {
Err(error) => {
tracing::warn!(
?error,
"Couldn't get the latest Ethereum block number, \
"Couldn't get the latest Ethereum block height, \
will keep trying"
);
tokio::time::sleep(std::time::Duration::from_secs(1))
Expand All @@ -149,6 +149,7 @@ pub mod oracle_process {
return;
}
};
tracing::debug!(?latest_block, "Got latest Ethereum block height");
// No blocks in existence yet with enough confirmations
if Uint256::from(MIN_CONFIRMATIONS) > latest_block {
if !oracle.connected() {
Expand Down

0 comments on commit 978fe79

Please sign in to comment.