Skip to content

Commit

Permalink
Update e2e and docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Jun 30, 2023
1 parent b803c25 commit 59fd196
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions dockerfile.d/console.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash

declare -A P2P_PORT=( ["alice"]="30333" ["bob"]="31333" ["charlie"]="32333" ["dave"]="33333" )
declare -A RPC_PORT=( ["alice"]="9933" ["bob"]="19933" ["charlie"]="29933" ["dave"]="39933" )
declare -A WS_PORT=( ["alice"]="9944" ["bob"]="19944" ["charlie"]="29944" ["dave"]="49944" )
declare -A RPC_PORT=( ["alice"]="9944" ["bob"]="19944" ["charlie"]="29944" ["dave"]="49944" )
declare -a rpc_port_array=( 0 9933 19933 29933 39933 )

NODE_NAME=phala-node
Expand All @@ -28,8 +27,7 @@ dev)
--base-path $BASE_PATH_BASE/dev \
--dev \
--port 30333 \
--rpc-port 9933 \
--ws-port 9944 \
--rpc-port 9944 \
--rpc-cors=all \
--execution=Wasm \
--validator \
Expand All @@ -42,8 +40,7 @@ dev-native)
--base-path $BASE_PATH_BASE/dev \
--dev \
--port 30333 \
--rpc-port 9933 \
--ws-port 9944 \
--rpc-port 9944 \
--rpc-cors=all \
--execution=Native \
--validator \
Expand All @@ -68,7 +65,6 @@ start)
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
--port "${P2P_PORT[${role}]}" \
--rpc-port "${RPC_PORT[${role}]}" \
--ws-port "${WS_PORT[${role}]}" \
--validator "$@"
;;
bob|charlie|dave)
Expand All @@ -81,7 +77,6 @@ start)
--rpc-cors all \
--port "${P2P_PORT[${role}]}" \
--rpc-port "${RPC_PORT[${role}]}" \
--ws-port "${WS_PORT[${role}]}" \
--validator "$@"
;;
*)
Expand Down
4 changes: 2 additions & 2 deletions e2e/src/fullstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -1296,13 +1296,13 @@ function waitNodeOutput(p) {
}


function newNode(wsPort, tmpPath, name = 'node') {
function newNode(rpcPort, tmpPath, name = 'node') {
const cli = [
pathNode, [
'--dev',
'--block-millisecs=1000',
'--base-path=' + path.resolve(tmpPath, 'phala-node'),
`--ws-port=${wsPort}`,
`--rpc-port=${rpcPort}`,
'--rpc-methods=Unsafe',
'--pruning=archive',
]
Expand Down

0 comments on commit 59fd196

Please sign in to comment.