From b5548fd857d893b2135bd0eaa60421b1c59a853e Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Mon, 27 Jul 2015 10:29:18 +0200 Subject: [PATCH 1/2] decrase minblockGasLimit to 5000 for frontier --- libethcore/Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libethcore/Common.cpp b/libethcore/Common.cpp index b95564b9b..43079fec9 100644 --- a/libethcore/Common.cpp +++ b/libethcore/Common.cpp @@ -61,7 +61,7 @@ Network resetNetwork(Network _n) { c_network = _n; c_maximumExtraDataSize = c_network == Network::Olympic ? 1024 : 32; - c_minGasLimit = c_network == Network::Turbo ? 100000000 : 125000; + c_minGasLimit = c_network == Network::Turbo ? 100000000 : 5000; c_gasLimitBoundDivisor = 1024; c_minimumDifficulty = 131072; c_difficultyBoundDivisor = 2048; From b4c8314de9481faaa288067a8d05769f51fae9b2 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Mon, 27 Jul 2015 10:41:14 +0200 Subject: [PATCH 2/2] blockGasLimit depending on network (olympic, turbo, frontier) --- libethcore/Common.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libethcore/Common.cpp b/libethcore/Common.cpp index 43079fec9..a3e993a1a 100644 --- a/libethcore/Common.cpp +++ b/libethcore/Common.cpp @@ -61,7 +61,19 @@ Network resetNetwork(Network _n) { c_network = _n; c_maximumExtraDataSize = c_network == Network::Olympic ? 1024 : 32; - c_minGasLimit = c_network == Network::Turbo ? 100000000 : 5000; + switch(_n) + { + case Network::Turbo: + c_minGasLimit = 100000000; + break; + case Network::Olympic: + c_minGasLimit = 125000; + break; + case Network::Frontier: + c_minGasLimit = 5000; + break; + } + c_gasLimitBoundDivisor = 1024; c_minimumDifficulty = 131072; c_difficultyBoundDivisor = 2048;