From 223084925a5718ef391d202003ee1053c20d792d Mon Sep 17 00:00:00 2001 From: Vsevolod Brekelov Date: Fri, 30 Aug 2019 11:21:39 +0300 Subject: [PATCH 1/2] Fix for node run in docker introduced in a3890910f2fdc83fb5807fcaaa30d070bcae86d6 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d48897746..35bee36a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,4 +39,4 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ ENTRYPOINT ["/usr/bin/neo-go"] -CMD ["neo-go", "--config-path", "./config", "--testnet"] +CMD ["node", "--config-path", "/config", "--testnet"] From b43b4497cc2a7218329ca59deee01f530ebb367e Mon Sep 17 00:00:00 2001 From: Vsevolod Brekelov Date: Fri, 30 Aug 2019 11:22:11 +0300 Subject: [PATCH 2/2] Fix config for RPC port and default configPath --- cli/server/server.go | 2 +- config/protocol.privnet.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/server/server.go b/cli/server/server.go index bf51603d6..32281bfe5 100644 --- a/cli/server/server.go +++ b/cli/server/server.go @@ -54,7 +54,7 @@ func startServer(ctx *cli.Context) error { grace, cancel := context.WithCancel(newGraceContext()) defer cancel() - configPath := "../config" + configPath := "./config" if argCp := ctx.String("config-path"); argCp != "" { configPath = argCp } diff --git a/config/protocol.privnet.yml b/config/protocol.privnet.yml index 929025858..022b04a8e 100644 --- a/config/protocol.privnet.yml +++ b/config/protocol.privnet.yml @@ -9,6 +9,7 @@ ProtocolConfiguration: - 03d90c07df63e690ce77912e10ab51acc944b66860237b608c4f8f8309e71ee699 - 02a7bc55fe8684e0119768d104ba30795bdcc86619e864add26156723ed185cd62 SeedList: + - 127.0.0.1:20333 - 127.0.0.1:20334 - 127.0.0.1:20335 - 127.0.0.1:20336 @@ -20,8 +21,8 @@ ProtocolConfiguration: ApplicationConfiguration: DataDirectoryPath: "./chains/privnet" - RPCPort: 20332 - NodePort: 20333 + RPCPort: 20331 + NodePort: 20332 Relay: true DialTimeout: 3 ProtoTickInterval: 2