Add beacon_chain_sim

This commit is contained in:
Paul Hauner
2019-11-19 13:29:29 +11:00
parent c5071afdbc
commit 90d63a46c7
6 changed files with 113 additions and 15 deletions

View File

@@ -193,7 +193,7 @@ impl<E: EthSpec> Environment<E> {
}
/// Returns a `Context` where the `service_name` is added to the logger output.
pub fn service_context(&mut self, service_name: &'static str) -> RuntimeContext<E> {
pub fn service_context(&mut self, service_name: String) -> RuntimeContext<E> {
RuntimeContext {
executor: self.runtime.executor(),
log: self.log.new(o!("service" => service_name)),