From fd3e066677ef96a271ceb52747a54bbc425dea2c Mon Sep 17 00:00:00 2001 From: George Knee Date: Fri, 12 May 2023 10:28:25 +0100 Subject: [PATCH] move chainpk config into 3x toml files 4 unique keys for deployer,alice,bob,irene also make stderr colorful --- scripts/start-rpc-servers.go | 4 ++-- scripts/test-configs/alice.toml | 3 ++- scripts/test-configs/bob.toml | 3 ++- scripts/test-configs/irene.toml | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/scripts/start-rpc-servers.go b/scripts/start-rpc-servers.go index cd8ab3cc8..09c46b2b2 100644 --- a/scripts/start-rpc-servers.go +++ b/scripts/start-rpc-servers.go @@ -38,7 +38,7 @@ const ( gray color = "[90m" ) -const FUNDED_TEST_PK = "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" +const FUNDED_TEST_PK = "ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" func main() { running := []*exec.Cmd{} @@ -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 diff --git a/scripts/test-configs/alice.toml b/scripts/test-configs/alice.toml index dd1565686..6893f422c 100644 --- a/scripts/test-configs/alice.toml +++ b/scripts/test-configs/alice.toml @@ -5,4 +5,5 @@ usedurablestore = true msgport = 3005 rpcport = 4005 -pk = "2d999770f7b5d49b694080f987b82bbc9fc9ac2b4dcc10b0f8aba7d700f69c6d" \ No newline at end of file +pk = "2d999770f7b5d49b694080f987b82bbc9fc9ac2b4dcc10b0f8aba7d700f69c6d" +chainpk = "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d" \ No newline at end of file diff --git a/scripts/test-configs/bob.toml b/scripts/test-configs/bob.toml index 3809a9878..f44bd98e5 100644 --- a/scripts/test-configs/bob.toml +++ b/scripts/test-configs/bob.toml @@ -5,4 +5,5 @@ usedurablestore = true msgport = 3007 rpcport = 4007 -pk = "0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4" \ No newline at end of file +pk = "0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4" +chainpk = "5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a" \ No newline at end of file diff --git a/scripts/test-configs/irene.toml b/scripts/test-configs/irene.toml index 602a4e69e..99d393259 100644 --- a/scripts/test-configs/irene.toml +++ b/scripts/test-configs/irene.toml @@ -5,4 +5,5 @@ usedurablestore = true msgport = 3006 rpcport = 4006 -pk = "febb3b74b0b52d0976f6571d555f4ac8b91c308dfa25c7b58d1e6a7c3f50c781" \ No newline at end of file +pk = "febb3b74b0b52d0976f6571d555f4ac8b91c308dfa25c7b58d1e6a7c3f50c781" +chainpk = "7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6" \ No newline at end of file