Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for ArrowGlacier Fork #153

Merged
merged 1 commit into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions retesteth/configs/Options.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class genConstantinopleFixCfg { public: genConstantinopleFixCfg(); };
class genIstanbulCfg { public: genIstanbulCfg(); };
class genBerlinCfg { public: genBerlinCfg(); };
class genLondonCfg { public: genLondonCfg(); };
class genArrowGlacierCfg { public: genArrowGlacierCfg(); };

// Transition genesis configs
class genFrontierToHomesteadCfg { public: genFrontierToHomesteadCfg(); };
Expand Down Expand Up @@ -58,6 +59,7 @@ class OptionsInit
genIstanbulCfg genIstanbuil;
genBerlinCfg genBerlin;
genLondonCfg genLondon;
genArrowGlacierCfg genArrowGlacier;

// Transition genesis configs
genFrontierToHomesteadCfg genFrontierToHomestead;
Expand Down
3 changes: 2 additions & 1 deletion retesteth/configs/clientconfigs/besu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ string const besu_config = R"({
"EIP158ToByzantiumAt5",
"HomesteadToDaoAt5",
"ByzantiumToConstantinopleFixAt5",
"BerlinToLondonAt5"
"BerlinToLondonAt5",
"ArrowGlacier"
],
"exceptions" : {
"ExtraDataTooBig" : "extra-data too long",
Expand Down
3 changes: 2 additions & 1 deletion retesteth/configs/clientconfigs/t8ntool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ string const t8ntool_config = R"({
"EIP158ToByzantiumAt5",
"HomesteadToDaoAt5",
"ByzantiumToConstantinopleFixAt5",
"BerlinToLondonAt5"
"BerlinToLondonAt5",
"ArrowGlacier"
],
"exceptions" : {
"AddressTooShort" : "input string too short for common.Address",
Expand Down
46 changes: 46 additions & 0 deletions retesteth/configs/genesis/default/ArrowGlacier.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#include <retesteth/configs/Options.h>
#include <string>
using namespace std;
using namespace dataobject;

const string default_ArrowGlacier_config = R"({
"params" : {
"homesteadForkBlock" : "0x00",
"EIP150ForkBlock" : "0x00",
"EIP158ForkBlock" : "0x00",
"byzantiumForkBlock" : "0x00",
"constantinopleForkBlock" : "0x00",
"constantinopleFixForkBlock" : "0x00",
"istanbulForkBlock" : "0x00",
"berlinForkBlock" : "0x00",
"londonForkBlock" : "0x00",
"arrowGlacierForkBlock" : "0x00",
"chainID" : "0x01"
},
"accounts" : {
}
})";

const string t8ntool_ArrowGlacier_config = R"({
"params" : {
"fork" : "ArrowGlacier",
"constantinopleForkBlock" : "0x00",
"byzantiumForkBlock" : "0x00",
"homesteadForkBlock" : "0x00"
},
"accounts" : {
}
})";

genArrowGlacierCfg::genArrowGlacierCfg()
{
spDataObject obj(new DataObject());
(*obj)["path"] = "besu/genesis/ArrowGlacier.json";
(*obj)["content"] = default_ArrowGlacier_config;
map_configs.addArrayObject(obj);

spDataObject obj2(new DataObject());
(*obj2)["path"] = "default/genesis/ArrowGlacier.json";
(*obj2)["content"] = t8ntool_ArrowGlacier_config;
map_configs.addArrayObject(obj2);
}
2 changes: 2 additions & 0 deletions retesteth/session/ToolBackend/ToolChainManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ VALUE ToolChainManager::test_calculateDifficulty(FORK const& _fork, VALUE const&
// Set uncle hash to non empty
if (_uncleNumber > 0)
headerA.setUnclesHash(FH32("0x2dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"));
else
headerA.setUnclesHash(FH32("0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"));

BlockHeader& headerB = blockB.headerUnsafe().getContent();
headerB.setTimestamp(_currentTimestamp);
Expand Down
1 change: 1 addition & 0 deletions retesteth/testSuites/DifficultyTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ TestSuite::FillerPath DifficultyTestSuite::suiteFillerFolder() const
using DifficultyTestsFixture = TestFixture<DifficultyTestSuite, DefaultFlags>;
BOOST_FIXTURE_TEST_SUITE(DifficultyTests, DifficultyTestsFixture)

BOOST_AUTO_TEST_CASE(dfArrowGlacier) {}
BOOST_AUTO_TEST_CASE(dfExample) {}

BOOST_AUTO_TEST_SUITE_END()