Skip to content

Commit

Permalink
Activate byzantium for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed Mar 1, 2018
1 parent dc317a4 commit 739533e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/RPCSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
/// @file RPCSession.cpp
/// Low-level IPC communication between the test framework and the Ethereum node.

#include "RPCSession.h"
#include <test/RPCSession.h>

#include <test/TestHelper.h>

#include <libsolidity/interface/EVMVersion.h>

#include <libdevcore/CommonData.h>

Expand Down Expand Up @@ -215,6 +219,9 @@ string RPCSession::personal_newAccount(string const& _password)

void RPCSession::test_setChainParams(vector<string> const& _accounts)
{
string enableByzantium;
if (test::Options::get().evmVersion() == solidity::EVMVersion::byzantium())
enableByzantium = "\"byzantiumForkBlock\": \"0x00\",";
static string const c_configString = R"(
{
"sealEngine": "NoProof",
Expand All @@ -224,6 +231,7 @@ void RPCSession::test_setChainParams(vector<string> const& _accounts)
"blockReward": "0x",
"allowFutureBlocks": true,
"homesteadForkBlock": "0x00",
)" + enableByzantium + R"(
"EIP150ForkBlock": "0x00",
"EIP158ForkBlock": "0x00"
},
Expand Down

0 comments on commit 739533e

Please sign in to comment.