From 16d9beae15a2a39b9b173e276872fdfb535c8044 Mon Sep 17 00:00:00 2001 From: 0g-peterzhb <158457852+0g-peterzhb@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:36:34 +0800 Subject: [PATCH] update default config (#105) --- scripts/update_config.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/update_config.sh b/scripts/update_config.sh index 21482d0..6be59ef 100755 --- a/scripts/update_config.sh +++ b/scripts/update_config.sh @@ -22,9 +22,10 @@ sed -in-place='' "s/miner_key = \"\"/miner_key = \"$MINER_KEY\"/g" $FILE # set miner contract address sed -in-place='' "s/mine_contract_address = \"0x8B9221eE2287aFBb34A7a1Ef72eB00fdD853FFC2\"/mine_contract_address = \"$MINE_CONTRACT\"/g" $FILE # set blockchain rpc endpoint -sed -in-place='' "s/blockchain_rpc_endpoint = \"https:\/\/rpc-testnet.0g.ai\"/blockchain_rpc_endpoint = \"$BLOCKCHAIN_RPC\"/g" $FILE +sed -in-place='' "s|blockchain_rpc_endpoint = \"https:\/\/rpc-testnet.0g.ai\"|blockchain_rpc_endpoint = \"$BLOCKCHAIN_RPC\"|g" $FILE # set flow contract address sed -in-place='' "s/log_contract_address = \"0x22C1CaF8cbb671F220789184fda68BfD7eaA2eE1\"/log_contract_address = \"$FLOW_CONTRACT\"/g" $FILE # set contract deployed block number sed -in-place='' "s/log_sync_start_block_number = 512567/log_sync_start_block_number = $BLOCK_NUMBER/g" $FILE - +# update the boot node ids +sed -in-place='' 's|network_boot_nodes = .*|network_boot_nodes = ["/ip4/54.219.26.22/udp/1234/p2p/16Uiu2HAmTVDGNhkHD98zDnJxQWu3i1FL1aFYeh9wiQTNu4pDCgps","/ip4/52.52.127.117/udp/1234/p2p/16Uiu2HAkzRjxK2gorngB1Xq84qDrT4hSVznYDHj6BkbaE4SGx9oS"]|g' $FILE