Skip to content

Commit

Permalink
move chainpk config into 3x toml files
Browse files Browse the repository at this point in the history
4 unique keys for deployer,alice,bob,irene

also make stderr colorful
  • Loading branch information
geoknee committed May 12, 2023
1 parent df9bd90 commit fd3e066
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/start-rpc-servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
gray color = "[90m"
)

const FUNDED_TEST_PK = "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
const FUNDED_TEST_PK = "ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"

func main() {
running := []*exec.Cmd{}
Expand Down Expand Up @@ -131,7 +131,7 @@ func setupRPCServer(p participant, c color, na types.Address) (*exec.Cmd, error)

cmd := exec.Command("go", args...)
cmd.Stdout = newColorWriter(c, os.Stdout)
cmd.Stderr = os.Stderr
cmd.Stderr = newColorWriter(c, os.Stderr)
err := cmd.Start()
if err != nil {
return nil, err
Expand Down
3 changes: 2 additions & 1 deletion scripts/test-configs/alice.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ usedurablestore = true
msgport = 3005
rpcport = 4005

pk = "2d999770f7b5d49b694080f987b82bbc9fc9ac2b4dcc10b0f8aba7d700f69c6d"
pk = "2d999770f7b5d49b694080f987b82bbc9fc9ac2b4dcc10b0f8aba7d700f69c6d"
chainpk = "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
3 changes: 2 additions & 1 deletion scripts/test-configs/bob.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ usedurablestore = true
msgport = 3007
rpcport = 4007

pk = "0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4"
pk = "0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4"
chainpk = "5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a"
3 changes: 2 additions & 1 deletion scripts/test-configs/irene.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ usedurablestore = true
msgport = 3006
rpcport = 4006

pk = "febb3b74b0b52d0976f6571d555f4ac8b91c308dfa25c7b58d1e6a7c3f50c781"
pk = "febb3b74b0b52d0976f6571d555f4ac8b91c308dfa25c7b58d1e6a7c3f50c781"
chainpk = "7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6"

0 comments on commit fd3e066

Please sign in to comment.