Skip to content

Commit

Permalink
removed from config
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin committed Mar 25, 2024
1 parent 5effbd0 commit 2dc783a
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions block/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,5 @@ func getManagerConfig() config.BlockManagerConfig {
BatchSubmitMaxTime: 30 * time.Minute,
NamespaceID: "0102030405060708",
GossipedBlocksCacheSize: 50,
OperatorKeyringBackend: "memory",
OperatorAccountName: "default",
}
}
5 changes: 0 additions & 5 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ type BlockManagerConfig struct {
BlockBatchMaxSizeBytes uint64 `mapstructure:"block_batch_max_size_bytes"`
// The number of messages cached by gossipsub protocol
GossipedBlocksCacheSize int `mapstructure:"gossiped_blocks_cache_size"`

// Parameters to get the sequencer's operator address
OperatorKeyringBackend string `mapstructure:"operator_keyring_backend"`
OperatorAccountName string `mapstructure:"operator_account_name"`
OperatorKeyringHomeDir string `mapstructure:"operator_keyring_home_dir"`
}

// GetViperConfig reads configuration parameters from Viper instance.
Expand Down
5 changes: 0 additions & 5 deletions config/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ func DefaultConfig(home, chainId string) *NodeConfig {
}
cfg.SettlementConfig = defaultSLconfig

// set operator address
cfg.OperatorKeyringBackend = defaultSLconfig.KeyringBackend
cfg.OperatorKeyringHomeDir = defaultSLconfig.KeyringHomeDir
cfg.OperatorAccountName = defaultSLconfig.DymAccountName

//Setting default params for da grpc mock
defaultDAGrpc := grpc.Config{
Host: "127.0.0.1",
Expand Down
5 changes: 0 additions & 5 deletions config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ keyring_home_dir = "{{ .SettlementConfig.KeyringHomeDir }}"
dym_account_name = "{{ .SettlementConfig.DymAccountName }}"
#keyring and key name to be used as sequencer's operator address on the rollapp
operator_keyring_backend = "{{ .BlockManagerConfig.OperatorKeyringBackend }}"
operator_keyring_home_dir = "{{ .BlockManagerConfig.OperatorKeyringHomeDir }}"
operator_account_name = "{{ .BlockManagerConfig.OperatorAccountName }}"
#######################################################
### Instrumentation Configuration Options ###
#######################################################
Expand Down
2 changes: 0 additions & 2 deletions node/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ func TestAggregatorMode(t *testing.T) {
BlockBatchMaxSizeBytes: 1000,
NamespaceID: "0102030405060708",
GossipedBlocksCacheSize: 50,
OperatorKeyringBackend: "memory",
OperatorAccountName: "default",
}

nodeConfig := config.NodeConfig{
Expand Down
2 changes: 0 additions & 2 deletions node/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ func CreateNode(isAggregator bool, blockManagerConfig *config.BlockManagerConfig
BatchSubmitMaxTime: 60 * time.Second,
BlockBatchMaxSizeBytes: 1000,
GossipedBlocksCacheSize: 50,
OperatorKeyringBackend: "memory",
OperatorAccountName: "default",
}
}
nodeConfig.BlockManagerConfig = *blockManagerConfig
Expand Down
4 changes: 0 additions & 4 deletions rpc/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,6 @@ func TestTx(t *testing.T) {
BatchSubmitMaxTime: 60 * time.Second,
BlockBatchMaxSizeBytes: 1000,
GossipedBlocksCacheSize: 50,
OperatorKeyringBackend: "memory",
OperatorAccountName: "default",
},
BootstrapTime: 30 * time.Second,
SettlementConfig: settlement.Config{ProposerPubKey: hex.EncodeToString(pubKeybytes)},
Expand Down Expand Up @@ -713,8 +711,6 @@ func TestValidatorSetHandling(t *testing.T) {
BatchSubmitMaxTime: 60 * time.Second,
BlockBatchMaxSizeBytes: 1000,
GossipedBlocksCacheSize: 50,
OperatorKeyringBackend: "memory",
OperatorAccountName: "default",
},
BootstrapTime: 30 * time.Second,
SettlementConfig: settlement.Config{ProposerPubKey: hex.EncodeToString(proposerPubKeyBytes)},
Expand Down
2 changes: 0 additions & 2 deletions rpc/json/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,6 @@ func getRPC(t *testing.T) (*mocks.Application, *client.Client) {
BlockBatchSize: 10000,
BlockBatchMaxSizeBytes: 1000,
GossipedBlocksCacheSize: 50,
OperatorKeyringBackend: "memory",
OperatorAccountName: "default",
},
SettlementConfig: settlement.Config{
ProposerPubKey: hex.EncodeToString(proposerPubKeyBytes)},
Expand Down

0 comments on commit 2dc783a

Please sign in to comment.