From ef05eaf4f8dcd12ab6e27d1fd1ed6cc979227133 Mon Sep 17 00:00:00 2001 From: wwestgarth Date: Mon, 2 Sep 2024 10:50:56 +0100 Subject: [PATCH] fix: set deployment heights when starting from genesis --- CHANGELOG.md | 1 + core/evtforward/ethereum/engine.go | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 482558495a6..dac145aef4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ - [11616](https://github.com/vegaprotocol/vega/issues/11616) - `AMM` tradable volume now calculated purely in positions to prevent loss of precision. - [11544](https://github.com/vegaprotocol/vega/issues/11544) - Fix empty candles stream. - [11583](https://github.com/vegaprotocol/vega/issues/11583) - Rough bound on price interval when matching with `AMMs` is now looser and calculated in the `AMM` engine. +- [11633](https://github.com/vegaprotocol/vega/issues/11633) - Use bridge deployment heights from network parameter when starting network from genesis. - [11619](https://github.com/vegaprotocol/vega/issues/11619) - Fix `EstimatePositions` API for capped futures. - [11579](https://github.com/vegaprotocol/vega/issues/11579) - Spot calculate fee on amend, use order price if no amended price is provided. - [11585](https://github.com/vegaprotocol/vega/issues/11585) - Initialise rebate stats service in API. diff --git a/core/evtforward/ethereum/engine.go b/core/evtforward/ethereum/engine.go index c928602800b..6a0cb714ee4 100644 --- a/core/evtforward/ethereum/engine.go +++ b/core/evtforward/ethereum/engine.go @@ -125,10 +125,10 @@ func NewEngine( poller: newPoller(cfg.PollEventRetryDuration.Get()), filterer: filterer, forwarder: fwdWrapper{forwarder, chainID}, - stakingDeployment: &Contract{stakingDeployment, 0, 0}, - vestingDeployment: &Contract{vestingDeployment, 0, 0}, - multisigDeployment: &Contract{multiSigDeployment, 0, 0}, - collateralDeployment: &Contract{collateralDeployment, 0, 0}, + stakingDeployment: &Contract{stakingDeployment, stakingDeployment.DeploymentBlockHeight(), stakingDeployment.DeploymentBlockHeight()}, + vestingDeployment: &Contract{vestingDeployment, vestingDeployment.DeploymentBlockHeight(), vestingDeployment.DeploymentBlockHeight()}, + multisigDeployment: &Contract{multiSigDeployment, multiSigDeployment.DeploymentBlockHeight(), multiSigDeployment.DeploymentBlockHeight()}, + collateralDeployment: &Contract{collateralDeployment, collateralDeployment.DeploymentBlockHeight(), collateralDeployment.DeploymentBlockHeight()}, chainID: chainID, heartbeatInterval: uint64(heartbeatInterval), }