From 32f2cfdaf67ad7ee3cc10b234dc8ed7c29e46fec Mon Sep 17 00:00:00 2001 From: Ralph Pichler Date: Fri, 16 Jul 2021 18:08:33 +0200 Subject: [PATCH 1/2] fix: correct blocktime for xdai --- cmd/bee/cmd/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bee/cmd/start.go b/cmd/bee/cmd/start.go index ebe2fa84800..48e514a6338 100644 --- a/cmd/bee/cmd/start.go +++ b/cmd/bee/cmd/start.go @@ -450,7 +450,7 @@ func getConfigByNetworkID(networkID uint64, defaultBlockTime uint64) *networkCon switch networkID { case 1: config.bootNodes = []string{"/dnsaddr/mainnet.ethswarm.org"} - config.blockTime = uint64(5 * time.Second) + config.blockTime = 5 config.chainID = 100 case 5: //staging config.chainID = 5 From 0e581b74ac9da640c4a48e98693dcce6dc537806 Mon Sep 17 00:00:00 2001 From: Ralph Pichler Date: Fri, 16 Jul 2021 18:28:14 +0200 Subject: [PATCH 2/2] fix: default block time --- cmd/bee/cmd/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bee/cmd/start.go b/cmd/bee/cmd/start.go index 48e514a6338..91c87814c8c 100644 --- a/cmd/bee/cmd/start.go +++ b/cmd/bee/cmd/start.go @@ -445,7 +445,7 @@ type networkConfig struct { func getConfigByNetworkID(networkID uint64, defaultBlockTime uint64) *networkConfig { var config = networkConfig{ - blockTime: uint64(time.Duration(defaultBlockTime) * time.Second), + blockTime: defaultBlockTime, } switch networkID { case 1: