Ok, i have changed the "useLedgerAfterSlot": 0
to 0.
This step: Create the topologyUpdater.sh
script which publishes your node information to a topology fetch list.
-Where it says (change me) in this line below, should i set the IP of my bp-server there or nr-server?:
CNODE_HOSTNAME=āCHANGE MEā # optional. must resolve to the IP you are requesting from
-Where it says āmainnetā & --mainnet & --testnet-magic in this line below, should i change or remove somethings?:
[[ ā${NETWORKID}ā = āMainnetā ]] && HASH_IDENTIFIER=āāmainnetā || HASH_IDENTIFIER=āātestnet-magic ${NWMAGIC}ā
-Where it says --mainnet & --testnet-magic in this line below, should i change or remove somethings?:
[[ ā${NWMAGIC}ā = ā764824073ā ]] && NETWORK_IDENTIFIER=āāmainnetā || NETWORK_IDENTIFIER=āātestnet-magic ${NWMAGIC}ā
Should i delete the lines in the end, where it says #Note:
#Note
if you run your node in IPv4/IPv6 dual stack network configuration and want announced the
IPv4 address only please add the -4 parameter to the curl command below (curl -4 -s ā¦)
command:
On relaynode1
cat > $NODE_HOME/topologyUpdater.sh << EOF
#!/bin/bash
shellcheck disable=SC2086,SC2034
USERNAME=$(cardano)
CNODE_PORT=6000 # must match your relay node port as set in the startup command
CNODE_HOSTNAME=āCHANGE MEā # optional. must resolve to the IP you are requesting from
CNODE_BIN=ā/usr/local/binā
CNODE_HOME=$NODE_HOME
CNODE_LOG_DIR=ā${CNODE_HOME}/logsā
GENESIS_JSON=ā${CNODE_HOME}/shelley-genesis.jsonā
NETWORKID=$(jq -r .networkId $GENESIS_JSON)
CNODE_VALENCY=1 # optional for multi-IP hostnames
NWMAGIC=$(jq -r .networkMagic < $GENESIS_JSON)
[[ ā${NETWORKID}ā = āMainnetā ]] && HASH_IDENTIFIER=āāmainnetā || HASH_IDENTIFIER=āātestnet-magic ${NWMAGIC}ā
[[ ā${NWMAGIC}ā = ā764824073ā ]] && NETWORK_IDENTIFIER=āāmainnetā || NETWORK_IDENTIFIER=āātestnet-magic ${NWMAGIC}ā
export PATH=ā${CNODE_BIN}:${PATH}ā
export CARDANO_NODE_SOCKET_PATH=ā${CNODE_HOME}/db/socketā
blockNo=$(/usr/local/bin/cardano-cli query tip ${NETWORK_IDENTIFIER} | jq -r .block )
Note:
if you run your node in IPv4/IPv6 dual stack network configuration and want announced the
IPv4 address only please add the -4 parameter to the curl command below (curl -4 -s ā¦)
if [ ā${CNODE_HOSTNAME}ā != āCHANGE MEā ]; then
T_HOSTNAME=ā&hostname=${CNODE_HOSTNAME}ā
else
T_HOSTNAME=āā
fi
if [ ! -d ${CNODE_LOG_DIR} ]; then
mkdir -p ${CNODE_LOG_DIR};
fi
curl -s āhttps://api.clio.one/htopology/v1/?port=\${CNODE_PORT}&blockNo=\${blockNo}&valency=\${CNODE_VALENCY}&magic=\${NWMAGIC}\${T_HOSTNAME}ā | tee -a $CNODE_LOG_DIR/topologyUpdater_lastresult.json
EOF
Best regards,