Skip to content

Commit

Permalink
Rename beacon_chain_bridge to beacon_lc_bridge (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeme committed Jul 25, 2023
1 parent c20892f commit 31cff91
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ TOOLS_CSV := $(subst $(SPACE),$(COMMA),$(TOOLS))

# Fluffy debugging tools + testing tools
FLUFFY_TOOLS := \
beacon_chain_bridge \
beacon_lc_bridge \
eth_data_exporter \
content_verifier \
blockwalk \
portalcli
FLUFFY_TOOLS_DIRS := \
fluffy/tools/bridge \
fluffy/tools/beacon_lc_bridge \
fluffy/tools
# comma-separated values for the "clean" target
FLUFFY_TOOLS_CSV := $(subst $(SPACE),$(COMMA),$(FLUFFY_TOOLS))
Expand Down
8 changes: 4 additions & 4 deletions fluffy/docs/content_seeding.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ Run a Fluffy node with the JSON-RPC API enabled.
./build/fluffy --rpc --table-ip-limit:1024 --bucket-ip-limit:24
```

Build & run the `beacon_chain_bridge`:
Build & run the `beacon_lc_bridge`:
```bash
make fluffy-tools
make beacon_lc_bridge

TRUSTED_BLOCK_ROOT=0x1234567890123456789012345678901234567890123456789012345678901234 # Replace this
./build/beacon_chain_bridge --trusted-block-root=${TRUSTED_BLOCK_ROOT}
./build/beacon_lc_bridge --trusted-block-root=${TRUSTED_BLOCK_ROOT}
```

The `beacon_chain_bridge` will start with the consensus light client sync follow
The `beacon_lc_bridge` will start with the consensus light client sync follow
beacon block gossip. Once it is synced, the execution payload of new beacon
blocks will be extracted and injected in the Portal network as execution headers
and blocks.
Expand Down
4 changes: 2 additions & 2 deletions fluffy/scripts/launch_local_testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ fi
# Build the binaries
BINARIES="fluffy"
if [[ "${LC_BRIDGE}" == "1" ]]; then
BINARIES="${BINARIES} beacon_chain_bridge"
BINARIES="${BINARIES} beacon_lc_bridge"
fi
TEST_BINARIES="test_portal_testnet"
$MAKE -j ${NPROC} LOG_LEVEL=TRACE ${BINARIES}
Expand Down Expand Up @@ -325,7 +325,7 @@ done
if [[ "$LC_BRIDGE" == "1" ]]; then
echo "Starting bridge node."
LC_BRIDGE_DATA_DIR="${DATA_DIR}/lc_bridge"
./build/beacon_chain_bridge \
./build/beacon_lc_bridge \
--data-dir="${LC_BRIDGE_DATA_DIR}" \
--udp-port=$(( BASE_PORT + NUM_NODES )) \
--rpc-address="127.0.0.1" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# at your option. This file may not be copied, modified, or distributed except according to those terms.

#
# This beacon_chain_bridge allows for following the head of the beacon chain and
# This beacon_lc_bridge allows for following the head of the beacon chain and
# seeding the latest execution block headers and bodies into the Portal network.
#
# The bridge does consensus light client sync and follows beacon block gossip.
Expand Down Expand Up @@ -87,7 +87,7 @@ import
../../network/history/[history_content, history_network],
../../network/beacon_light_client/beacon_light_client_content,
../../common/common_types,
./beacon_chain_bridge_conf
./beacon_lc_bridge_conf

from stew/objects import checkedEnumAssign
from stew/byteutils import readHexChar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type BeaconBridgeConf* = object

# Storage
dataDir* {.
desc: "The directory where beacon_chain_bridge will store all data"
desc: "The directory where beacon_lc_bridge will store all data"
defaultValue: defaultVerifiedProxyDataDir()
defaultValueDesc: $defaultDataVerifiedProxyDirDesc
abbr: "d"
Expand Down
File renamed without changes.

0 comments on commit 31cff91

Please sign in to comment.