Skip to content

Commit

Permalink
Merge pull request #216 from ElrondNetwork/fix-p2p-config
Browse files Browse the repository at this point in the history
Fixed p2p configs
  • Loading branch information
iulianpascalau authored Mar 17, 2022
2 parents 0233b3b + 0681a17 commit 62e0367
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
go-version: ^1.17.6
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
go-version: ^1.17.6
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.16
go-version: ^1.17.6
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15.6
go-version: ^1.17.6
id: go

- name: Check out code
Expand Down
2 changes: 2 additions & 0 deletions cmd/bridge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const (
logFilePrefix = "elrond-eth-bridge"
p2pPeerNetworkDiscoverer = "optimized"
nilListSharderType = "NilListSharder"
disabledWatcher = "disabled"
dbPath = "db"
timeForBootstrap = time.Second * 20
timeBeforeRepeatJoin = time.Minute * 5
Expand Down Expand Up @@ -312,6 +313,7 @@ func buildNetMessenger(cfg config.Config, marshalizer marshal.Marshalizer) (p2p.
Seed: cfg.P2P.Seed,
MaximumExpectedPeerCount: 0,
ThresholdMinConnectedPeers: 0,
ConnectionWatcherType: disabledWatcher,
}
peerDiscoveryConfig := elrondConfig.KadDhtPeerDiscoveryConfig{
Enabled: true,
Expand Down

0 comments on commit 62e0367

Please sign in to comment.