Skip to content

Commit

Permalink
fix: init file for sync (#372)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Paitrault <simon.paitrault@gmail.com>
  • Loading branch information
Freyskeyd authored Nov 14, 2023
1 parent 4799cce commit 0d04308
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ TOPOS_HOME=/tmp/node_config
NODE="http://$HOSTNAME:1340"
TCE_EXT_HOST="/dns4/$HOSTNAME"
FIXED_BOOT_PEER_ID="BOOT_NODE_1"
export TOPOS_HOME=$TOPOS_HOME

mkdir -p $TOPOS_HOME/node/test/libp2p
mkdir -p $TOPOS_HOME/node/test/consensus

random_entry () {
local seed=$(hostname -i | tr -d ".")
Expand All @@ -31,13 +35,9 @@ case "$1" in

PEER=$($TOPOS_BIN tce keys --from-seed=$HOSTNAME)

export TOPOS_HOME=$TOPOS_HOME
export TCE_LOCAL_KS=$HOSTNAME
export TCE_EXT_HOST

mkdir -p $TOPOS_HOME/node/test/libp2p
mkdir -p $TOPOS_HOME/node/test/consensus

LIBP2P_KEY=$(random_entry /tmp/shared/libp2p_keys.json)
echo -n $LIBP2P_KEY > $TOPOS_HOME/node/test/libp2p/libp2p.key

Expand Down

0 comments on commit 0d04308

Please sign in to comment.