Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Oct 5, 2023
1 parent beb9c30 commit 7b84d9f
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions node/chainSimulator/processComponents.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ import (
"github.com/multiversx/mx-chain-go/genesis"
"github.com/multiversx/mx-chain-go/genesis/parsing"
"github.com/multiversx/mx-chain-go/process"
"github.com/multiversx/mx-chain-go/process/interceptors"
"github.com/multiversx/mx-chain-go/process/interceptors/disabled"
"github.com/multiversx/mx-chain-go/sharding"
"github.com/multiversx/mx-chain-go/sharding/nodesCoordinator"
"github.com/multiversx/mx-chain-go/storage/cache"
storageFactory "github.com/multiversx/mx-chain-go/storage/factory"
"github.com/multiversx/mx-chain-go/storage/storageunit"
"github.com/multiversx/mx-chain-go/update"
"github.com/multiversx/mx-chain-go/update/trigger"
vmcommon "github.com/multiversx/mx-chain-vm-common-go"
Expand Down Expand Up @@ -146,18 +144,12 @@ func CreateProcessComponentsHolder(args ArgsProcessComponentsHolder) (factory.Pr
return nil, err
}

whiteListCache, err := storageunit.NewCache(storageFactory.GetCacherFromConfig(args.Config.WhiteListPool))
if err != nil {
return nil, err
}
// TODO check if this is needed
whiteListRequest, err := interceptors.NewWhiteListDataVerifier(whiteListCache)
whiteListRequest, err := disabled.NewDisabledWhiteListDataVerifier()
if err != nil {
return nil, err
}

// TODO check if this is needed
whiteListerVerifiedTxs, err := createWhiteListerVerifiedTxs(&args.Config)
whiteListerVerifiedTxs, err := disabled.NewDisabledWhiteListDataVerifier()
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -271,14 +263,6 @@ func CreateProcessComponentsHolder(args ArgsProcessComponentsHolder) (factory.Pr
return instance, nil
}

func createWhiteListerVerifiedTxs(generalConfig *config.Config) (process.WhiteListHandler, error) {
whiteListCacheVerified, err := storageunit.NewCache(storageFactory.GetCacherFromConfig(generalConfig.WhiteListerVerifiedTxs))
if err != nil {
return nil, err
}
return interceptors.NewWhiteListDataVerifier(whiteListCacheVerified)
}

// NodesCoordinator will return the nodes coordinator
func (p *processComponentsHolder) NodesCoordinator() nodesCoordinator.NodesCoordinator {
return p.nodesCoordinator
Expand Down

0 comments on commit 7b84d9f

Please sign in to comment.