Block client startup until state is ready

This commit is contained in:
Paul Hauner
2019-03-27 11:25:15 +11:00
parent 8733740f8b
commit f18941a01c
2 changed files with 63 additions and 37 deletions

View File

@@ -68,7 +68,8 @@ impl BeaconBlockService for BeaconBlockServiceInstance {
info!(
self.log,
"PublishBeaconBlock";
"type" => "invalid_block",
"type" => "valid_block",
"block_slot" => block.slot,
"outcome" => format!("{:?}", outcome)
);
@@ -102,10 +103,10 @@ impl BeaconBlockService for BeaconBlockServiceInstance {
);
} else {
// Some failure during processing.
error!(
warn!(
self.log,
"PublishBeaconBlock";
"type" => "other",
"type" => "unable_to_import",
"outcome" => format!("{:?}", outcome)
);