From ac786fafffce2accdf454f94d746906b3f461740 Mon Sep 17 00:00:00 2001 From: Jim Zhang Date: Mon, 5 Aug 2024 12:57:16 -0400 Subject: [PATCH] Fix on top of PR 320 Signed-off-by: Jim Zhang --- internal/blockchain/ethereum/quorum/quorum.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/blockchain/ethereum/quorum/quorum.go b/internal/blockchain/ethereum/quorum/quorum.go index e45aa71..e2f7ca8 100644 --- a/internal/blockchain/ethereum/quorum/quorum.go +++ b/internal/blockchain/ethereum/quorum/quorum.go @@ -36,10 +36,10 @@ func CreateQuorumEntrypoint(ctx context.Context, outputDirectory, consensus, sta connectTimeout := 15 if memberIndex != 0 { discoveryCmd = fmt.Sprintf(`bootnode=$(curl http://quorum_0:%s -s --connect-timeout %[2]d --max-time %[2]d --retry 5 --retry-connrefused --retry-delay 0 --retry-max-time 60 --fail --header "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method": "admin_nodeInfo", "params": [], "id": 1}' | grep -o "enode://[a-z0-9@.:]*") -BOOTNODE_CMD="BOOTNODE_CMD=--bootnodes $bootnode" +BOOTNODE_CMD="--bootnodes $bootnode" BOOTNODE_CMD=${BOOTNODE_CMD/127.0.0.1/quorum_0}`, QuorumPort, connectTimeout) } else { - discoveryCmd = "BOOTNODE_CMD=--nodiscover" + discoveryCmd = `BOOTNODE_CMD=""` } tesseraCmd := ""