mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-17 20:02:43 +00:00
stable futures fixes (#1124)
* Fix eth1 update functions * Fix genesis and client * Fix beacon node lib * Return appropriate runtimes from environment * Fix test rig * Refactor eth1 service update
This commit is contained in:
@@ -94,9 +94,7 @@ impl Eth1GenesisService {
|
||||
loop {
|
||||
// **WARNING** `delay_for` panics on error
|
||||
delay_for(update_interval).await;
|
||||
let update_result = self
|
||||
.core
|
||||
.update_deposit_cache()
|
||||
let update_result = Service::update_deposit_cache(self.core.clone())
|
||||
.await
|
||||
.map_err(|e| format!("{:?}", e));
|
||||
|
||||
@@ -134,7 +132,7 @@ impl Eth1GenesisService {
|
||||
|
||||
let should_update_block_cache = *sync_blocks;
|
||||
if should_update_block_cache {
|
||||
let update_result = self.core.update_block_cache().await;
|
||||
let update_result = Service::update_block_cache(self.core.clone()).await;
|
||||
if let Err(e) = update_result {
|
||||
error!(
|
||||
log,
|
||||
|
||||
Reference in New Issue
Block a user