Skip to content

Commit

Permalink
Node/EVM: More nodes support finalized and safe (#3467)
Browse files Browse the repository at this point in the history
* Node/EVM: More nodes support finalized and safe

* Remove unused finalizers
  • Loading branch information
bruce-riley authored Oct 26, 2023
1 parent 5afd9ea commit bd7262d
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 472 deletions.
9 changes: 4 additions & 5 deletions node/cmd/guardiand/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1079,11 +1079,10 @@ func runNode(cmd *cobra.Command, args []string) {

if shouldStart(bscRPC) {
wc := &evm.WatcherConfig{
NetworkID: "bsc",
ChainID: vaa.ChainIDBSC,
Rpc: *bscRPC,
Contract: *bscContract,
WaitForConfirmations: true,
NetworkID: "bsc",
ChainID: vaa.ChainIDBSC,
Rpc: *bscRPC,
Contract: *bscContract,
}

watcherConfigs = append(watcherConfigs, wc)
Expand Down
46 changes: 0 additions & 46 deletions node/pkg/watchers/evm/finalizers/arbitrum.go

This file was deleted.

131 changes: 0 additions & 131 deletions node/pkg/watchers/evm/finalizers/arbitrum_test.go

This file was deleted.

41 changes: 0 additions & 41 deletions node/pkg/watchers/evm/finalizers/moonbeam.go

This file was deleted.

137 changes: 0 additions & 137 deletions node/pkg/watchers/evm/finalizers/moonbeam_test.go

This file was deleted.

9 changes: 9 additions & 0 deletions node/pkg/watchers/evm/finalizers/neon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ import (
"go.uber.org/zap"
)

// mockL1Finalizer implements the L1Finalizer interface for testing purposes.
type mockL1Finalizer struct {
LatestFinalizedBlockNumber uint64
}

func (m *mockL1Finalizer) GetLatestFinalizedBlockNumber() uint64 {
return m.LatestFinalizedBlockNumber
}

func TestNeonErrorReturnedIfBlockIsNil(t *testing.T) {
ctx := context.Background()
logger := zap.NewNop()
Expand Down
Loading

0 comments on commit bd7262d

Please sign in to comment.