aboutsummaryrefslogtreecommitdiffstats
path: root/test/RPCSession.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-23 23:41:23 +0800
committerchriseth <chris@ethereum.org>2018-03-02 00:19:35 +0800
commit739533e9c7534cd3a0b321a3a6be1e041c91e4a2 (patch)
tree167e577b48362fe3ea3ed8203963351872eac975 /test/RPCSession.cpp
parentdc317a44e031d45ebf745b47248bf06bc92d58bf (diff)
downloaddexon-solidity-739533e9c7534cd3a0b321a3a6be1e041c91e4a2.tar
dexon-solidity-739533e9c7534cd3a0b321a3a6be1e041c91e4a2.tar.gz
dexon-solidity-739533e9c7534cd3a0b321a3a6be1e041c91e4a2.tar.bz2
dexon-solidity-739533e9c7534cd3a0b321a3a6be1e041c91e4a2.tar.lz
dexon-solidity-739533e9c7534cd3a0b321a3a6be1e041c91e4a2.tar.xz
dexon-solidity-739533e9c7534cd3a0b321a3a6be1e041c91e4a2.tar.zst
dexon-solidity-739533e9c7534cd3a0b321a3a6be1e041c91e4a2.zip
Activate byzantium for testing.
Diffstat (limited to 'test/RPCSession.cpp')
-rw-r--r--test/RPCSession.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp
index 69c75cee..79ddf754 100644
--- a/test/RPCSession.cpp
+++ b/test/RPCSession.cpp
@@ -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>
@@ -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",
@@ -224,6 +231,7 @@ void RPCSession::test_setChainParams(vector<string> const& _accounts)
"blockReward": "0x",
"allowFutureBlocks": true,
"homesteadForkBlock": "0x00",
+ )" + enableByzantium + R"(
"EIP150ForkBlock": "0x00",
"EIP158ForkBlock": "0x00"
},