mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 20:39:10 +00:00
Small bug fixes from initial sim tests (#993)
* Debug logging and fixes * Minor fixes * Remove debugging statements
This commit is contained in:
@@ -91,7 +91,7 @@ pub fn testing_client_config() -> ClientConfig {
|
||||
client_config
|
||||
}
|
||||
|
||||
/// Provids a validator client that is running in the current process on a given tokio executor (it
|
||||
/// Provides a validator client that is running in the current process on a given tokio executor (it
|
||||
/// is _local_ to this process).
|
||||
///
|
||||
/// Intended for use in testing and simulation. Not for production.
|
||||
|
||||
@@ -46,9 +46,10 @@ impl<E: EthSpec> LocalNetwork<E> {
|
||||
context: RuntimeContext<E>,
|
||||
mut beacon_config: ClientConfig,
|
||||
) -> impl Future<Item = Self, Error = String> {
|
||||
// Fix bootnode ports
|
||||
beacon_config.network.discovery_port = BOOTNODE_PORT;
|
||||
beacon_config.network.libp2p_port = BOOTNODE_PORT;
|
||||
beacon_config.network.enr_udp_port = Some(BOOTNODE_PORT);
|
||||
beacon_config.network.enr_tcp_port = Some(BOOTNODE_PORT);
|
||||
LocalBeaconNode::production(context.service_context("boot_node".into()), beacon_config).map(
|
||||
|beacon_node| Self {
|
||||
inner: Arc::new(Inner {
|
||||
|
||||
Reference in New Issue
Block a user