From 6ec6fc1d75e1c79f36cb281da552e072ab6b96cb Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 14 Oct 2022 14:32:35 -0500 Subject: [PATCH] Add comment and minor fix. --- compose/docker-compose-fixturenet-eth.yml | 2 ++ .../cerc-fixturenet-eth-lighthouse/genesis/cl/beacon_node.sh | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compose/docker-compose-fixturenet-eth.yml b/compose/docker-compose-fixturenet-eth.yml index 94c573de..ad79814c 100644 --- a/compose/docker-compose-fixturenet-eth.yml +++ b/compose/docker-compose-fixturenet-eth.yml @@ -77,6 +77,8 @@ services: fixturenet-eth-net: networks: + # When the bootnode ENR is generated during the build, it requires a specific IP. + # The easiest way to do that is to use a private network. fixturenet-eth-net: driver: bridge ipam: diff --git a/container-build/cerc-fixturenet-eth-lighthouse/genesis/cl/beacon_node.sh b/container-build/cerc-fixturenet-eth-lighthouse/genesis/cl/beacon_node.sh index 026d40e1..3bd67723 100755 --- a/container-build/cerc-fixturenet-eth-lighthouse/genesis/cl/beacon_node.sh +++ b/container-build/cerc-fixturenet-eth-lighthouse/genesis/cl/beacon_node.sh @@ -19,7 +19,6 @@ http_port=8001 authrpc_port=8551 ENR=`cat $DATADIR/bootnode/enr.dat` -ENR_IP=`ip addr | grep 172 | awk '{print $2}' | cut -d '/' -f1` exec lighthouse \ --debug-level $DEBUG_LEVEL \ @@ -30,7 +29,7 @@ exec lighthouse \ --testnet-dir $TESTNET_DIR \ --enable-private-discovery \ --staking \ - --enr-address $ENR_IP \ + --enr-address $BOOTNODE_IP \ --enr-udp-port $network_port \ --enr-tcp-port $network_port \ --port $network_port \