-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 3-node localnet * fix: ignore setup * fix: try with sudo and debug logs * chore: revert change * fix: create directory * fix: sudo and -p * fix: sudo everywhere :( * fix: don't sudo a var * chore: no sudo * chore: quick bouncer * chore: sudo manage * chore: debug logs * fix: try mkdirs before * fix: set selected nodes to 1 * chore: revert ci changes * fix: add bashful bootnode * fix: logs * fix: add suggestion * fix: suffix NODE_COUNT variable * fix: replace dev null * chore: use custom dev-3 chainspec for 3-node localnet * fix rebase issues * fix: restore order of tests * chore: put gas limit test before concurrent --------- Co-authored-by: kylezs <zsembery.kyle@gmail.com>
- Loading branch information
1 parent
fb3dfb9
commit c388114
Showing
22 changed files
with
233 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ef895dc87b545ba42ece3162b8441f712c892d0681ae34682eeb3e5443afefaa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bac76708516faf25aa2b0cf28d93db721b2ba6beaa2f8eabc9c195d4b115df01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
92c070c2d06e91d2d38941c81518a0f49a0e59f864eac2dc4b0757ebe8634898 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ef895dc87b545ba42ece3162b8441f712c892d0681ae34682eeb3e5443afefaa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a132ff372e0cef12f78bf6ec04d964ab6aa9a62b9e0eca9b5280ccc25be1c157 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a5cc9f6f5454218310d169b4f79f412793921ff566673a14d085d0d51729e5bb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
binary_location=$1 | ||
BINARY_ROOT_PATH=$1 | ||
NODE_NAME=$2 | ||
PORT=$3 | ||
HEALTH_PORT=$4 | ||
RPC_PORT=$5 | ||
LOG_PORT=$6 | ||
source ./localnet/init/env/cfe.env | ||
$binary_location/chainflip-engine --config-root=./localnet/init/ > /tmp/chainflip/chainflip-engine.log 2>&1 & | ||
$BINARY_ROOT_PATH/chainflip-engine \ | ||
--config-root=./localnet/init/ \ | ||
--eth.private_key_file=./localnet/init/keys/$NODE_NAME/eth_private_key_file \ | ||
--state_chain.signing_key_file=./localnet/init/keys/$NODE_NAME/signing_key_file \ | ||
--state_chain.ws_endpoint=ws://localhost:$RPC_PORT \ | ||
--p2p.node_key_file=./localnet/init/keys/$NODE_NAME/node_key_file \ | ||
--p2p.port=$PORT \ | ||
--logging.command_server_port=$LOG_PORT \ | ||
--signing.db_file=/tmp/chainflip/$NODE_NAME/$NODE_NAME.db \ | ||
--health_check.port=$HEALTH_PORT > /tmp/chainflip/$NODE_NAME/chainflip-engine.log 2>&1 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
#!/bin/bash | ||
set -e | ||
binary_location=$1 | ||
BINARY_ROOT_PATH=$1 | ||
NODE_NAME=$2 | ||
PORT=$3 | ||
RPC_PORT=$4 | ||
NODE_COUNT=$5 | ||
|
||
CHAIN="dev" | ||
if [ $NODE_COUNT == "3-node" ]; then | ||
CHAIN="dev-3" | ||
fi | ||
|
||
source ./localnet/init/env/eth.env | ||
source ./localnet/init/env/arb.env | ||
source ./localnet/init/env/node.env | ||
$binary_location/chainflip-node key insert --chain=dev --base-path=/tmp/chainflip/chaindata --suri=0x$(cat ./localnet/init/keys/signing_key_file) --key-type=aura --scheme=sr25519 | ||
$binary_location/chainflip-node key insert --chain=dev --base-path=/tmp/chainflip/chaindata --suri=0x$(cat ./localnet/init/keys/signing_key_file) --key-type=gran --scheme=ed25519 | ||
$binary_location/chainflip-node --chain=dev \ | ||
--base-path=/tmp/chainflip/chaindata \ | ||
--node-key-file=./localnet/init/keys/node_key_file \ | ||
export ETH_INIT_AGG_KEY=$(jq -r '.eth_agg_key' ./localnet/init/keyshare/$NODE_COUNT/agg_keys.json) | ||
export DOT_INIT_AGG_KEY=$(jq -r '.dot_agg_key' ./localnet/init/keyshare/$NODE_COUNT/agg_keys.json) | ||
$BINARY_ROOT_PATH/chainflip-node key insert --chain=$CHAIN --base-path=/tmp/chainflip/$NODE_NAME/chaindata --suri=0x$(cat ./localnet/init/keys/$NODE_NAME/signing_key_file) --key-type=aura --scheme=sr25519 | ||
$BINARY_ROOT_PATH/chainflip-node key insert --chain=$CHAIN --base-path=/tmp/chainflip/$NODE_NAME/chaindata --suri=0x$(cat ./localnet/init/keys/$NODE_NAME/signing_key_file) --key-type=gran --scheme=ed25519 | ||
$BINARY_ROOT_PATH/chainflip-node --chain=$CHAIN \ | ||
--base-path=/tmp/chainflip/$NODE_NAME/chaindata \ | ||
--node-key-file=./localnet/init/keys/$NODE_NAME/node_key_file \ | ||
--validator \ | ||
--force-authoring \ | ||
--rpc-cors=all \ | ||
--unsafe-rpc-external \ | ||
--rpc-methods=unsafe \ | ||
--name=bashful \ | ||
--name=$NODE_NAME \ | ||
--port=$PORT \ | ||
--rpc-port=$RPC_PORT \ | ||
--blocks-pruning=archive \ | ||
--state-pruning=archive \ | ||
--trie-cache-size=0 > /tmp/chainflip/chainflip-node.log 2>&1 & | ||
--bootnodes=/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWFD3YMDyQocSQBAx6VCcUruYihi6xYufduzf321FnvvoY \ | ||
--trie-cache-size=0 > /tmp/chainflip/$NODE_NAME/chainflip-node.log 2>&1 & |
Oops, something went wrong.