Skip to content

Commit

Permalink
Merge pull request #11702 from vegaprotocol/11684-check-evm-bridge-co…
Browse files Browse the repository at this point in the history
…nfig

fix: return a better error if Arbitrum bridge is missing from validat…
  • Loading branch information
wwestgarth authored Sep 23, 2024
2 parents d025a29 + 8a6123f commit 604858c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

- [11672](https://github.com/vegaprotocol/vega/issues/11672) - Add missing fees in GraphQL bindings.
- [11681](https://github.com/vegaprotocol/vega/issues/11681) - Account for conflicts inserting funding payment records.
- [11684](https://github.com/vegaprotocol/vega/issues/11684) - Better error when `Arbitrum` bridge details are missing from validator configuration.
- [11696](https://github.com/vegaprotocol/vega/issues/11696) - Add binding for estimate fees API.


Expand Down
4 changes: 4 additions & 0 deletions core/protocol/all_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ func newServices(
svcs.forwarderHeartbeat = evtforward.NewTracker(log, svcs.witness, svcs.timeService)

if svcs.conf.HaveEthClient() {
if len(svcs.conf.EvtForward.EVMBridges) != 1 {
return nil, fmt.Errorf("require exactly 1 [[EvtForward.EVMBridges]] in configuration file, got: %d", len(svcs.conf.EvtForward.EVMBridges))
}

svcs.primaryBridgeView = bridges.NewERC20LogicView(primaryEthClient, primaryEthConfirmations)
svcs.secondaryBridgeView = bridges.NewERC20LogicView(secondaryEthClient, secondaryEthConfirmations)
svcs.primaryEventForwarderEngine = evtforward.NewEngine(svcs.log, svcs.conf.EvtForward.Ethereum)
Expand Down

0 comments on commit 604858c

Please sign in to comment.