From e2ef904901b3b320de8e3eb7dd41415c0dc1b91d Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 26 Nov 2021 16:56:48 +0300 Subject: [PATCH] config: use http for oracle nodes Otherwise the following error occurs: ``` first path segment in URL cannot contain colon ``` --- config/protocol.privnet.docker.four.yml | 8 ++++---- config/protocol.privnet.docker.one.yml | 8 ++++---- config/protocol.privnet.docker.single.yml | 2 +- config/protocol.privnet.docker.three.yml | 8 ++++---- config/protocol.privnet.docker.two.yml | 8 ++++---- pkg/services/helpers/rpcbroadcaster/client.go | 1 + 6 files changed, 18 insertions(+), 17 deletions(-) diff --git a/config/protocol.privnet.docker.four.yml b/config/protocol.privnet.docker.four.yml index 365b90c92..0dda142e0 100644 --- a/config/protocol.privnet.docker.four.yml +++ b/config/protocol.privnet.docker.four.yml @@ -54,10 +54,10 @@ ApplicationConfiguration: AllowedContentTypes: - application/json Nodes: - - node_one:30333 - - node_two:30334 - - node_three:30335 - - node_four:30336 + - http://node_one:30333 + - http://node_two:30334 + - http://node_three:30335 + - http://node_four:30336 RequestTimeout: 5s UnlockWallet: Path: "/wallet4.json" diff --git a/config/protocol.privnet.docker.one.yml b/config/protocol.privnet.docker.one.yml index 736cf0ad9..09e46e4d8 100644 --- a/config/protocol.privnet.docker.one.yml +++ b/config/protocol.privnet.docker.one.yml @@ -54,10 +54,10 @@ ApplicationConfiguration: AllowedContentTypes: - application/json Nodes: - - node_one:30333 - - node_two:30334 - - node_three:30335 - - node_four:30336 + - http://node_one:30333 + - http://node_two:30334 + - http://node_three:30335 + - http://node_four:30336 RequestTimeout: 5s UnlockWallet: Path: "/wallet1.json" diff --git a/config/protocol.privnet.docker.single.yml b/config/protocol.privnet.docker.single.yml index 10a6602c6..3baec517f 100644 --- a/config/protocol.privnet.docker.single.yml +++ b/config/protocol.privnet.docker.single.yml @@ -48,7 +48,7 @@ ApplicationConfiguration: AllowedContentTypes: - application/json Nodes: - - node_single:30333 + - http://node_single:30333 RequestTimeout: 5s UnlockWallet: Path: "/wallet1_solo.json" diff --git a/config/protocol.privnet.docker.three.yml b/config/protocol.privnet.docker.three.yml index dccec4aea..2dc2b3a6a 100644 --- a/config/protocol.privnet.docker.three.yml +++ b/config/protocol.privnet.docker.three.yml @@ -54,10 +54,10 @@ ApplicationConfiguration: AllowedContentTypes: - application/json Nodes: - - node_one:30333 - - node_two:30334 - - node_three:30335 - - node_four:30336 + - http://node_one:30333 + - http://node_two:30334 + - http://node_three:30335 + - http://node_four:30336 RequestTimeout: 5s UnlockWallet: Path: "/wallet3.json" diff --git a/config/protocol.privnet.docker.two.yml b/config/protocol.privnet.docker.two.yml index 7f6fca93a..fee6455bb 100644 --- a/config/protocol.privnet.docker.two.yml +++ b/config/protocol.privnet.docker.two.yml @@ -54,10 +54,10 @@ ApplicationConfiguration: AllowedContentTypes: - application/json Nodes: - - node_one:30333 - - node_two:30334 - - node_three:30335 - - node_four:30336 + - http://node_one:30333 + - http://node_two:30334 + - http://node_three:30335 + - http://node_four:30336 RequestTimeout: 5s UnlockWallet: Path: "/wallet2.json" diff --git a/pkg/services/helpers/rpcbroadcaster/client.go b/pkg/services/helpers/rpcbroadcaster/client.go index 3ee04afdf..6dce47492 100644 --- a/pkg/services/helpers/rpcbroadcaster/client.go +++ b/pkg/services/helpers/rpcbroadcaster/client.go @@ -53,6 +53,7 @@ func (c *RPCClient) run() { RequestTimeout: c.sendTimeout, }) if err != nil { + c.log.Error("failed to create client to submit oracle response", zap.Error(err)) continue } }