Skip to content

Commit

Permalink
fix toml test
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Sep 12, 2023
1 parent d9f9038 commit f806406
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions go/host/container/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type HostConfigToml struct {
EnclaveRPCAddress string
P2PBindAddress string
P2PPublicAddress string
L1WSRPCAddress string
L1WebsocketRPCAddress string
EnclaveRPCTimeout int
L1RPCTimeout int
P2PConnectionTimeout int
Expand Down Expand Up @@ -179,7 +179,7 @@ func fileBasedConfig(configPath string) (*config.HostInputConfig, error) {
EnclaveRPCAddress: tomlConfig.EnclaveRPCAddress,
P2PBindAddress: tomlConfig.P2PBindAddress,
P2PPublicAddress: tomlConfig.P2PPublicAddress,
L1WebsocketRPCAddress: tomlConfig.L1WSRPCAddress,
L1WebsocketRPCAddress: tomlConfig.L1WebsocketRPCAddress,
EnclaveRPCTimeout: time.Duration(tomlConfig.EnclaveRPCTimeout) * time.Second,
L1RPCTimeout: time.Duration(tomlConfig.L1RPCTimeout) * time.Second,
P2PConnectionTimeout: time.Duration(tomlConfig.P2PConnectionTimeout) * time.Second,
Expand Down
3 changes: 1 addition & 2 deletions go/host/container/test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ EnclaveRPCTimeout = 10
P2PBindAddress = "0.0.0.0:10000"
P2PPublicAddress = "127.0.0.1:10000"
P2PConnectionTimeout = 777
L1NodeHost = "127.0.0.1"
L1NodeWebsocketPort = 8546
L1WebsocketRPCAddress = "ws://127.0.0.1:8546"
L1RPCTimeout = 15
ManagementContractAddress = ""
LogLevel = 3
Expand Down

0 comments on commit f806406

Please sign in to comment.