Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit d6dd532

Browse files
authored
Support Istanbul in aleth-vm tool (#5762)
Support Istanbul in aleth-vm tool
2 parents 32a5c98 + 3e72402 commit d6dd532

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- Added: [#5751](https://github.com/ethereum/aleth/pull/5751) Istanbul support: EIP-152 Add BLAKE2 compression function `F` precompile.
2525
- Added: [#5755](https://github.com/ethereum/aleth/pull/5755) testeth now runs `stChainId`, `stSLoadTest`, `stSelfBalance` tests for Istanbul.
2626
- Added: [#5758](https://github.com/ethereum/aleth/pull/5758) Istanbul support: activation in Ropsten config.
27+
- Added: [#5762](https://github.com/ethereum/aleth/pull/5762) aleth-vm supports `--network Istanbul` option.
2728
- Changed: [#5532](https://github.com/ethereum/aleth/pull/5532) The leveldb is upgraded to 1.22. This is breaking change on Windows and the old databases are not compatible.
2829
- Changed: [#5559](https://github.com/ethereum/aleth/pull/5559) Update peer validation error messages.
2930
- Changed: [#5568](https://github.com/ethereum/aleth/pull/5568) Improve rlpx handshake log messages and create new rlpx log channel.

aleth-vm/main.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ int main(int argc, char** argv)
114114

115115
po::options_description networkOptions("Network options", c_lineWidth);
116116
networkOptions.add_options()("network", po::value<string>(),
117-
"Main|Ropsten|Homestead|Frontier|Byzantium|Constantinople|ConstantinopleFix\n");
117+
"Main|Ropsten|Homestead|Frontier|Byzantium|Constantinople|ConstantinopleFix|Istanbul\n");
118118

119119
po::options_description optionsForTrace("Options for trace", c_lineWidth);
120120
auto addTraceOption = optionsForTrace.add_options();
@@ -212,9 +212,11 @@ int main(int argc, char** argv)
212212
if (vm.count("network"))
213213
{
214214
string network = vm["network"].as<string>();
215-
if (network == "ConstantinopleFix")
215+
if (network == "Istanbul")
216+
networkName = Network::IstanbulTest;
217+
else if (network == "ConstantinopleFix")
216218
networkName = Network::ConstantinopleFixTest;
217-
if (network == "Constantinople")
219+
else if (network == "Constantinople")
218220
networkName = Network::ConstantinopleTest;
219221
else if (network == "Byzantium")
220222
networkName = Network::ByzantiumTest;

0 commit comments

Comments
 (0)