Skip to content

Commit

Permalink
fix presets (pre merge no longer supported)
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliusbtc committed Apr 1, 2024
1 parent 5454e4f commit 80b06f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ethergo/backends/preset/presets.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func GetMaticMumbai() Backend {
chainConfig := *params.AllCliqueProtocolChanges
chainConfig.ChainID = client.MaticMainnetConfig.ChainID
// london is not activated on bsc
chainConfig.LondonBlock = nil
chainConfig.LondonBlock = big.NewInt(0)

return Backend{
config: &chainConfig,
Expand Down
13 changes: 7 additions & 6 deletions services/omnirpc/rpcinfo/latency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@ package rpcinfo_test

import (
"context"
"net/http"
"net/http/httptest"
"sync"
"time"

. "github.com/stretchr/testify/assert"
"github.com/synapsecns/sanguine/core/metrics"
"github.com/synapsecns/sanguine/ethergo/backends/geth"
"github.com/synapsecns/sanguine/ethergo/backends/preset"
"github.com/synapsecns/sanguine/services/omnirpc/rpcinfo"
"golang.org/x/sync/errgroup"
"net/http"
"net/http/httptest"
"sync"
"time"
)

func (r *LatencySuite) TestRPCLatency() {
var bsc, avalanche *geth.Backend
g, _ := errgroup.WithContext(r.GetTestContext())
g.Go(func() error {
bsc = preset.GetBSCTestnet().Geth(r.GetTestContext(), r.T())
bsc = preset.GetMaticMumbai().Geth(r.GetTestContext(), r.T())
return nil
})
g.Go(func() error {
avalanche = preset.GetAvalancheLocal().Geth(r.GetTestContext(), r.T())
avalanche = preset.GetSepolia().Geth(r.GetTestContext(), r.T())
return nil
})
Nil(r.T(), g.Wait())
Expand Down

0 comments on commit 80b06f9

Please sign in to comment.