Skip to content

Commit

Permalink
Merge pull request #322 from kaleido-io/fix-discovery
Browse files Browse the repository at this point in the history
Fix on top of PR 320, remove --nodiscover for bootnode
  • Loading branch information
EnriqueL8 authored Aug 5, 2024
2 parents bea8476 + ac786fa commit 982a8ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/blockchain/ethereum/quorum/quorum.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 := ""
Expand Down

0 comments on commit 982a8ad

Please sign in to comment.