@@ -10,7 +10,6 @@ import (
1010 "sync/atomic"
1111 "time"
1212
13- "github.com/offchainlabs/nitro/address-filter"
1413 "github.com/spf13/pflag"
1514
1615 "github.com/ethereum/go-ethereum/arbitrum"
@@ -27,6 +26,7 @@ import (
2726 "github.com/ethereum/go-ethereum/params"
2827 "github.com/ethereum/go-ethereum/rpc"
2928
29+ addressfilter "github.com/offchainlabs/nitro/address-filter"
3030 "github.com/offchainlabs/nitro/arbos/arbostypes"
3131 "github.com/offchainlabs/nitro/arbos/programs"
3232 "github.com/offchainlabs/nitro/arbutil"
@@ -136,7 +136,7 @@ type Config struct {
136136 ExposeMultiGas bool `koanf:"expose-multi-gas"`
137137 RPCServer rpcserver.Config `koanf:"rpc-server"`
138138 ConsensusRPCClient rpcclient.ClientConfig `koanf:"consensus-rpc-client" reload:"hot"`
139- addressfilter addressfilter.Config `koanf:"address-filter" reload:"hot"`
139+ AddressFilter addressfilter.Config `koanf:"address-filter" reload:"hot"`
140140
141141 forwardingTarget string
142142}
@@ -168,7 +168,7 @@ func (c *Config) Validate() error {
168168 if err := c .ConsensusRPCClient .Validate (); err != nil {
169169 return fmt .Errorf ("error validating ConsensusRPCClient config: %w" , err )
170170 }
171- if err := c .addressfilter .Validate (); err != nil {
171+ if err := c .AddressFilter .Validate (); err != nil {
172172 return fmt .Errorf ("error validating addressfilter config: %w" , err )
173173 }
174174 return nil
@@ -242,7 +242,7 @@ var ConfigDefault = Config{
242242 WebsocketMessageSizeLimit : 256 * 1024 * 1024 ,
243243 },
244244
245- addressfilter : addressfilter .DefaultConfig ,
245+ AddressFilter : addressfilter .DefaultConfig ,
246246}
247247
248248type ConfigFetcher interface {
@@ -268,7 +268,7 @@ type ExecutionNode struct {
268268 started atomic.Bool
269269 bulkBlockMetadataFetcher * BulkBlockMetadataFetcher
270270 consensusRPCClient * consensusrpcclient.ConsensusRPCClient
271- addressfilterService * addressfilter.Service
271+ addressFilterService * addressfilter.Service
272272}
273273
274274func CreateExecutionNode (
@@ -363,7 +363,7 @@ func CreateExecutionNode(
363363
364364 bulkBlockMetadataFetcher := NewBulkBlockMetadataFetcher (l2BlockChain , execEngine , config .BlockMetadataApiCacheSize , config .BlockMetadataApiBlocksLimit )
365365
366- addressfilterService , err := addressfilter .NewService (ctx , & config .addressfilter )
366+ addressFilterService , err := addressfilter .NewService (ctx , & config .AddressFilter )
367367 if err != nil {
368368 return nil , fmt .Errorf ("failed to create restricted addr service: %w" , err )
369369 }
@@ -383,7 +383,7 @@ func CreateExecutionNode(
383383 ParentChainReader : parentChainReader ,
384384 ClassicOutbox : classicOutbox ,
385385 bulkBlockMetadataFetcher : bulkBlockMetadataFetcher ,
386- addressfilterService : addressfilterService ,
386+ addressFilterService : addressFilterService ,
387387 }
388388
389389 if config .ConsensusRPCClient .URL != "" {
@@ -475,8 +475,8 @@ func (n *ExecutionNode) Initialize(ctx context.Context) error {
475475 if err != nil {
476476 return fmt .Errorf ("error setting sync backend: %w" , err )
477477 }
478- if n .addressfilterService != nil {
479- if err = n .addressfilterService .Initialize (ctx ); err != nil {
478+ if n .addressFilterService != nil {
479+ if err = n .addressFilterService .Initialize (ctx ); err != nil {
480480 return fmt .Errorf ("error initializing restricted addr service: %w" , err )
481481 }
482482 }
@@ -514,8 +514,8 @@ func (n *ExecutionNode) Start(ctxIn context.Context) error {
514514 }
515515 n .bulkBlockMetadataFetcher .Start (ctx )
516516
517- if n .addressfilterService != nil {
518- n .addressfilterService .Start (ctx )
517+ if n .addressFilterService != nil {
518+ n .addressFilterService .Start (ctx )
519519 }
520520 return nil
521521}
@@ -547,8 +547,8 @@ func (n *ExecutionNode) StopAndWait() {
547547 // }
548548 n .StopWaiter .StopAndWait ()
549549
550- if n .addressfilterService != nil && n .addressfilterService .Started () {
551- n .addressfilterService .StopAndWait ()
550+ if n .addressFilterService != nil && n .addressFilterService .Started () {
551+ n .addressFilterService .StopAndWait ()
552552 }
553553}
554554
0 commit comments