Skip to content

Commit

Permalink
[cmd] actually apply ToRPCServerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 authored and ONECasey committed Feb 27, 2023
1 parent afdbd44 commit a96fb3f
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions cmd/harmony/main.go
Expand Up @@ -334,23 +334,7 @@ func setupNodeAndRun(hc harmonyconfig.HarmonyConfig) {
}

// Parse RPC config
nodeConfig.RPCServer = nodeconfig.RPCServerConfig{
HTTPEnabled: hc.HTTP.Enabled,
HTTPIp: hc.HTTP.IP,
HTTPPort: hc.HTTP.Port,
HTTPAuthPort: hc.HTTP.AuthPort,
WSEnabled: hc.WS.Enabled,
WSIp: hc.WS.IP,
WSPort: hc.WS.Port,
WSAuthPort: hc.WS.AuthPort,
DebugEnabled: hc.RPCOpt.DebugEnabled,
EthRPCsEnabled: hc.RPCOpt.EthRPCsEnabled,
StakingRPCsEnabled: hc.RPCOpt.StakingRPCsEnabled,
LegacyRPCsEnabled: hc.RPCOpt.LegacyRPCsEnabled,
RpcFilterFile: hc.RPCOpt.RpcFilterFile,
RateLimiterEnabled: hc.RPCOpt.RateLimterEnabled,
RequestsPerSecond: hc.RPCOpt.RequestsPerSecond,
}
nodeConfig.RPCServer = hc.ToRPCServerConfig()

// Parse rosetta config
nodeConfig.RosettaServer = nodeconfig.RosettaServerConfig{
Expand Down

0 comments on commit a96fb3f

Please sign in to comment.