Browse Source

Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop

cl-refactor
Gav Wood 10 years ago
parent
commit
76d2d7a1b5
  1. 6
      libtestutils/Common.cpp
  2. 1
      libtestutils/Common.h
  3. 57
      test/CMakeLists.txt
  4. 10
      test/TestHelper.cpp
  5. 3
      test/TestHelper.h
  6. 0
      test/deprecated/fork.cpp
  7. 0
      test/deprecated/kademlia.cpp
  8. 0
      test/deprecated/main.cpp
  9. 0
      test/deprecated/txTest.cpp
  10. 31
      test/fuzzTesting/CMakeLists.txt
  11. 2
      test/fuzzTesting/checkRandomStateTest.cpp
  12. 3
      test/fuzzTesting/checkRandomVMTest.cpp
  13. 4
      test/fuzzTesting/createRandomStateTest.cpp
  14. 2
      test/fuzzTesting/createRandomVMTest.cpp
  15. 5
      test/libdevcore/CMakeLists.txt
  16. 4
      test/libdevcore/rlp.cpp
  17. 5
      test/libdevcrypto/CMakeLists.txt
  18. 0
      test/libdevcrypto/MemTrie.cpp
  19. 0
      test/libdevcrypto/MemTrie.h
  20. 0
      test/libdevcrypto/TrieHash.cpp
  21. 0
      test/libdevcrypto/TrieHash.h
  22. 0
      test/libdevcrypto/crypto.cpp
  23. 4
      test/libdevcrypto/hexPrefix.cpp
  24. 4
      test/libdevcrypto/trie.cpp
  25. 5
      test/libethcore/CMakeLists.txt
  26. 0
      test/libethcore/commonjs.cpp
  27. 4
      test/libethcore/dagger.cpp
  28. 0
      test/libethereum/BlockTestsFiller/bcInvalidHeaderTestFiller.json
  29. 0
      test/libethereum/BlockTestsFiller/bcUncleHeaderValiditiyFiller.json
  30. 0
      test/libethereum/BlockTestsFiller/bcUncleTestFiller.json
  31. 0
      test/libethereum/BlockTestsFiller/bcValidBlockTestFiller.json
  32. 5
      test/libethereum/CMakeLists.txt
  33. 2
      test/libethereum/ClientBase.cpp
  34. 0
      test/libethereum/StateTestsFiller/ManyFunctions.sol
  35. 0
      test/libethereum/StateTestsFiller/ManyFunctionsGenerator.py
  36. 0
      test/libethereum/StateTestsFiller/stBlockHashTestFiller.json
  37. 0
      test/libethereum/StateTestsFiller/stCallCreateCallCodeTestFiller.json
  38. 0
      test/libethereum/StateTestsFiller/stExampleFiller.json
  39. 0
      test/libethereum/StateTestsFiller/stInitCodeTestFiller.json
  40. 0
      test/libethereum/StateTestsFiller/stLogTestsFiller.json
  41. 0
      test/libethereum/StateTestsFiller/stMemoryStressTestFiller.json
  42. 0
      test/libethereum/StateTestsFiller/stMemoryTestFiller.json
  43. 0
      test/libethereum/StateTestsFiller/stPreCompiledContractsFiller.json
  44. 0
      test/libethereum/StateTestsFiller/stQuadraticComplexityTestFiller.json
  45. 0
      test/libethereum/StateTestsFiller/stRecursiveCreateFiller.json
  46. 0
      test/libethereum/StateTestsFiller/stRefundTestFiller.json
  47. 0
      test/libethereum/StateTestsFiller/stSolidityTestFiller.json
  48. 0
      test/libethereum/StateTestsFiller/stSpecialTestFiller.json
  49. 0
      test/libethereum/StateTestsFiller/stSystemOperationsTestFiller.json
  50. 0
      test/libethereum/StateTestsFiller/stTransactionTestFiller.json
  51. 0
      test/libethereum/TransactionTestsFiller/tt10mbDataFieldFiller.json
  52. 0
      test/libethereum/TransactionTestsFiller/ttTransactionTestFiller.json
  53. 16
      test/libethereum/blockchain.cpp
  54. 4
      test/libethereum/genesis.cpp
  55. 34
      test/libethereum/state.cpp
  56. 2
      test/libethereum/stateOriginal.cpp
  57. 8
      test/libethereum/transaction.cpp
  58. 5
      test/libevm/CMakeLists.txt
  59. 0
      test/libevm/VMTestsFiller/performanceTester.sol
  60. 0
      test/libevm/VMTestsFiller/vmArithmeticTestFiller.json
  61. 0
      test/libevm/VMTestsFiller/vmBitwiseLogicOperationTestFiller.json
  62. 0
      test/libevm/VMTestsFiller/vmBlockInfoTestFiller.json
  63. 0
      test/libevm/VMTestsFiller/vmEnvironmentalInfoTestFiller.json
  64. 0
      test/libevm/VMTestsFiller/vmIOandFlowOperationsTestFiller.json
  65. 0
      test/libevm/VMTestsFiller/vmLogTestFiller.json
  66. 0
      test/libevm/VMTestsFiller/vmPerformanceTestFiller.json
  67. 0
      test/libevm/VMTestsFiller/vmPushDupSwapTestFiller.json
  68. 0
      test/libevm/VMTestsFiller/vmSha3TestFiller.json
  69. 0
      test/libevm/VMTestsFiller/vmSystemOperationsTestFiller.json
  70. 0
      test/libevm/VMTestsFiller/vmtestsFiller.json
  71. 28
      test/libevm/vm.cpp
  72. 2
      test/libevm/vm.h
  73. 0
      test/libevmcore/Assembly.cpp
  74. 5
      test/libevmcore/CMakeLists.txt
  75. 5
      test/libnatspec/CMakeLists.txt
  76. 0
      test/libnatspec/natspec.cpp
  77. 5
      test/libp2p/CMakeLists.txt
  78. 0
      test/libp2p/net.cpp
  79. 0
      test/libp2p/peer.cpp
  80. 0
      test/libp2p/rlpx.cpp
  81. 5
      test/libsolidity/CMakeLists.txt
  82. 2
      test/libsolidity/SolidityABIJSON.cpp
  83. 0
      test/libsolidity/SolidityCompiler.cpp
  84. 2
      test/libsolidity/SolidityEndToEndTest.cpp
  85. 2
      test/libsolidity/SolidityExpressionCompiler.cpp
  86. 2
      test/libsolidity/SolidityInterface.cpp
  87. 2
      test/libsolidity/SolidityNameAndTypeResolution.cpp
  88. 2
      test/libsolidity/SolidityNatspecJSON.cpp
  89. 2
      test/libsolidity/SolidityOptimizer.cpp
  90. 2
      test/libsolidity/SolidityParser.cpp
  91. 0
      test/libsolidity/SolidityScanner.cpp
  92. 0
      test/libsolidity/SolidityTypes.cpp
  93. 2
      test/libsolidity/solidityExecutionFramework.h
  94. 0
      test/libweb3jsonrpc/AccountHolder.cpp
  95. 5
      test/libweb3jsonrpc/CMakeLists.txt
  96. 4
      test/libweb3jsonrpc/jsonrpc.cpp
  97. 0
      test/libweb3jsonrpc/webthreestubclient.h
  98. 5
      test/libwhisper/CMakeLists.txt
  99. 0
      test/libwhisper/whisperTopic.cpp
  100. 29
      test/randomTestFiller.json

6
libtestutils/Common.cpp

@ -20,6 +20,7 @@
*/
#include <random>
#include <boost/filesystem.hpp>
#include <libdevcore/CommonData.h>
#include <libdevcore/CommonIO.h>
#include <libdevcrypto/FileSystem.h>
@ -73,6 +74,11 @@ std::string dev::test::toTestFilePath(std::string const& _filename)
return getTestPath() + "/" + _filename + ".json";
}
std::string dev::test::getFolder(std::string const& _file)
{
return boost::filesystem::path(_file).parent_path().string();
}
std::string dev::test::getRandomPath()
{
std::stringstream stream;

1
libtestutils/Common.h

@ -37,6 +37,7 @@ std::string getTestPath();
int randomNumber();
Json::Value loadJsonFromFile(std::string const& _path);
std::string toTestFilePath(std::string const& _filename);
std::string getFolder(std::string const& _file);
std::string getRandomPath();
}

57
test/CMakeLists.txt

@ -1,13 +1,39 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRC_LIST)
list(REMOVE_ITEM SRC_LIST "./createRandomVMTest.cpp")
list(REMOVE_ITEM SRC_LIST "./createRandomStateTest.cpp")
list(REMOVE_ITEM SRC_LIST "./checkRandomVMTest.cpp")
list(REMOVE_ITEM SRC_LIST "./checkRandomStateTest.cpp")
macro (add_sources)
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}/test" "${CMAKE_CURRENT_SOURCE_DIR}")
foreach (_src ${ARGN})
if (_relPath)
list (APPEND SRC "${_relPath}/${_src}")
else()
list (APPEND SRC "${_src}")
endif()
endforeach()
if (_relPath)
# propagate SRCS to parent directory
set (SRC ${SRC} PARENT_SCOPE)
endif()
endmacro()
add_subdirectory(fuzzTesting)
add_subdirectory(libdevcore)
add_subdirectory(libdevcrypto)
add_subdirectory(libethcore)
add_subdirectory(libethereum)
add_subdirectory(libevm)
add_subdirectory(libevmcore)
add_subdirectory(libnatspec)
add_subdirectory(libp2p)
add_subdirectory(libsolidity)
add_subdirectory(libweb3jsonrpc)
add_subdirectory(libwhisper)
set(SRC_LIST ${SRC_LIST} ${SRC})
if (NOT JSONRPC)
list(REMOVE_ITEM SRC_LIST "./AccountHolder.cpp")
list(REMOVE_ITEM SRC_LIST "libweb3jsonrpc/./AccountHolder.cpp")
endif()
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
@ -34,10 +60,6 @@ endforeach(file)
file(GLOB HEADERS "*.h")
add_executable(testeth ${SRC_LIST} ${HEADERS})
add_executable(createRandomVMTest createRandomVMTest.cpp vm.cpp TestHelper.cpp Stats.cpp)
add_executable(createRandomStateTest createRandomStateTest.cpp TestHelper.cpp Stats.cpp)
add_executable(checkRandomVMTest checkRandomVMTest.cpp vm.cpp TestHelper.cpp Stats.cpp)
add_executable(checkRandomStateTest checkRandomStateTest.cpp TestHelper.cpp Stats.cpp)
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(testeth ${CURL_LIBRARIES})
@ -57,23 +79,6 @@ if (JSONRPC)
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
endif()
target_link_libraries(createRandomVMTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomVMTest ethereum)
target_link_libraries(createRandomVMTest ethcore)
target_link_libraries(createRandomVMTest testutils)
target_link_libraries(createRandomStateTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomStateTest ethereum)
target_link_libraries(createRandomStateTest ethcore)
target_link_libraries(createRandomStateTest testutils)
target_link_libraries(checkRandomVMTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(checkRandomVMTest ethereum)
target_link_libraries(checkRandomVMTest ethcore)
target_link_libraries(checkRandomVMTest testutils)
target_link_libraries(checkRandomStateTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(checkRandomStateTest ethereum)
target_link_libraries(checkRandomStateTest ethcore)
target_link_libraries(checkRandomStateTest testutils)
enable_testing()
set(CTEST_OUTPUT_ON_FAILURE TRUE)

10
test/TestHelper.cpp

@ -23,9 +23,6 @@
#include <thread>
#include <chrono>
#include <boost/filesystem/path.hpp>
#include <libethereum/Client.h>
#include <liblll/Compiler.h>
#include <libevm/VMFactory.h>
@ -592,7 +589,7 @@ void userDefinedTest(string testTypeFlag, std::function<void(json_spirit::mValue
}
}
void executeTests(const string& _name, const string& _testPathAppendix, std::function<void(json_spirit::mValue&, bool)> doTests)
void executeTests(const string& _name, const string& _testPathAppendix, const boost::filesystem::path _pathToFiller, std::function<void(json_spirit::mValue&, bool)> doTests)
{
string testPath = getTestPath();
testPath += _testPathAppendix;
@ -607,9 +604,8 @@ void executeTests(const string& _name, const string& _testPathAppendix, std::fun
cnote << "Populating tests...";
json_spirit::mValue v;
boost::filesystem::path p(__FILE__);
boost::filesystem::path dir = p.parent_path();
string s = asString(dev::contents(dir.string() + "/" + _name + "Filler.json"));
BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of " + dir.string() + "/" + _name + "Filler.json is empty.");
string s = asString(dev::contents(_pathToFiller.string() + "/" + _name + "Filler.json"));
BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of " + _pathToFiller.string() + "/" + _name + "Filler.json is empty.");
json_spirit::read_string(s, v);
doTests(v, true);
writeFile(testPath + "/" + _name + ".json", asBytes(json_spirit::write_string(v, true)));

3
test/TestHelper.h

@ -24,6 +24,7 @@
#include <functional>
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "JsonSpiritHeaders.h"
#include <libethereum/State.h>
@ -155,7 +156,7 @@ void checkStorage(std::map<u256, u256> _expectedStore, std::map<u256, u256> _res
void checkLog(eth::LogEntries _resultLogs, eth::LogEntries _expectedLogs);
void checkCallCreates(eth::Transactions _resultCallCreates, eth::Transactions _expectedCallCreates);
void executeTests(const std::string& _name, const std::string& _testPathAppendix, std::function<void(json_spirit::mValue&, bool)> doTests);
void executeTests(const std::string& _name, const std::string& _testPathAppendix, const boost::filesystem::path _pathToFiller, std::function<void(json_spirit::mValue&, bool)> doTests);
void userDefinedTest(std::string testTypeFlag, std::function<void(json_spirit::mValue&, bool)> doTests);
RLPStream createRLPStreamFromTransactionFields(json_spirit::mObject& _tObj);
eth::LastHashes lastHashes(u256 _currentBlockNumber);

0
test/fork.cpp → test/deprecated/fork.cpp

0
test/kademlia.cpp → test/deprecated/kademlia.cpp

0
test/main.cpp → test/deprecated/main.cpp

0
test/txTest.cpp → test/deprecated/txTest.cpp

31
test/fuzzTesting/CMakeLists.txt

@ -0,0 +1,31 @@
cmake_policy(SET CMP0015 NEW)
file(GLOB HEADERS "*.h")
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
include_directories(BEFORE ..)
include_directories(BEFORE ../..)
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${CRYPTOPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
add_executable(createRandomVMTest createRandomVMTest.cpp ../libevm/vm.cpp ../TestHelper.cpp ../Stats.cpp)
add_executable(createRandomStateTest createRandomStateTest.cpp ../TestHelper.cpp ../Stats.cpp)
add_executable(checkRandomVMTest checkRandomVMTest.cpp ../libevm/vm.cpp ../TestHelper.cpp ../Stats.cpp)
add_executable(checkRandomStateTest checkRandomStateTest.cpp ../TestHelper.cpp ../Stats.cpp)
target_link_libraries(createRandomVMTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomVMTest ethereum)
target_link_libraries(createRandomVMTest ethcore)
target_link_libraries(createRandomVMTest testutils)
target_link_libraries(createRandomStateTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomStateTest ethereum)
target_link_libraries(createRandomStateTest ethcore)
target_link_libraries(createRandomStateTest testutils)
target_link_libraries(checkRandomVMTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(checkRandomVMTest ethereum)
target_link_libraries(checkRandomVMTest ethcore)
target_link_libraries(checkRandomVMTest testutils)
target_link_libraries(checkRandomStateTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(checkRandomStateTest ethereum)
target_link_libraries(checkRandomStateTest ethcore)
target_link_libraries(checkRandomStateTest testutils)

2
test/checkRandomStateTest.cpp → test/fuzzTesting/checkRandomStateTest.cpp

@ -26,7 +26,7 @@
#include <libdevcore/Log.h>
#include <libevm/VMFactory.h>
#include "TestHelper.h"
#include "vm.h"
#include "../libevm/vm.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
using namespace std;

3
test/checkRandomVMTest.cpp → test/fuzzTesting/checkRandomVMTest.cpp

@ -25,7 +25,8 @@
#include <libdevcore/Exceptions.h>
#include <libdevcore/Log.h>
#include <libevm/VMFactory.h>
#include "vm.h"
#include "../libevm/vm.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
using namespace std;

4
test/createRandomStateTest.cpp → test/fuzzTesting/createRandomStateTest.cpp

@ -35,8 +35,8 @@
#include <libdevcore/CommonData.h>
#include <libevmcore/Instruction.h>
#include <libevm/VMFactory.h>
#include "TestHelper.h"
#include "vm.h"
#include "../TestHelper.h"
#include "../libevm/vm.h"
using namespace std;
using namespace json_spirit;

2
test/createRandomVMTest.cpp → test/fuzzTesting/createRandomVMTest.cpp

@ -35,7 +35,7 @@
#include <libdevcore/CommonData.h>
#include <libevmcore/Instruction.h>
#include <libevm/VMFactory.h>
#include "vm.h"
#include "../libevm/vm.h"
using namespace std;
using namespace json_spirit;

5
test/libdevcore/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

4
test/rlp.cpp → test/libdevcore/rlp.cpp

@ -30,8 +30,8 @@
#include <libdevcore/Common.h>
#include <libdevcore/CommonIO.h>
#include <algorithm>
#include "JsonSpiritHeaders.h"
#include "TestHelper.h"
#include "../JsonSpiritHeaders.h"
#include "../TestHelper.h"
using namespace std;
using namespace dev;

5
test/libdevcrypto/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

0
test/MemTrie.cpp → test/libdevcrypto/MemTrie.cpp

0
test/MemTrie.h → test/libdevcrypto/MemTrie.h

0
test/TrieHash.cpp → test/libdevcrypto/TrieHash.cpp

0
test/TrieHash.h → test/libdevcrypto/TrieHash.h

0
test/crypto.cpp → test/libdevcrypto/crypto.cpp

4
test/hexPrefix.cpp → test/libdevcrypto/hexPrefix.cpp

@ -24,11 +24,11 @@
#include <boost/test/unit_test.hpp>
#include "JsonSpiritHeaders.h"
#include "../JsonSpiritHeaders.h"
#include <libdevcore/Log.h>
#include <libdevcore/CommonIO.h>
#include <libdevcrypto/TrieCommon.h>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;
using namespace dev;

4
test/trie.cpp → test/libdevcrypto/trie.cpp

@ -25,12 +25,12 @@
#include <boost/test/unit_test.hpp>
#include "JsonSpiritHeaders.h"
#include "../JsonSpiritHeaders.h"
#include <libdevcore/CommonIO.h>
#include <libdevcrypto/TrieDB.h>
#include "TrieHash.h"
#include "MemTrie.h"
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;
using namespace dev;

5
test/libethcore/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

0
test/commonjs.cpp → test/libethcore/commonjs.cpp

4
test/dagger.cpp → test/libethcore/dagger.cpp

@ -22,12 +22,12 @@
#include <fstream>
#include <random>
#include "JsonSpiritHeaders.h"
#include "../JsonSpiritHeaders.h"
#include <libdevcore/CommonIO.h>
#include <libethcore/ProofOfWork.h>
#include <libethcore/EthashAux.h>
#include <boost/test/unit_test.hpp>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;
using namespace dev;

0
test/bcInvalidHeaderTestFiller.json → test/libethereum/BlockTestsFiller/bcInvalidHeaderTestFiller.json

0
test/bcUncleHeaderValiditiyFiller.json → test/libethereum/BlockTestsFiller/bcUncleHeaderValiditiyFiller.json

0
test/bcUncleTestFiller.json → test/libethereum/BlockTestsFiller/bcUncleTestFiller.json

0
test/bcValidBlockTestFiller.json → test/libethereum/BlockTestsFiller/bcValidBlockTestFiller.json

5
test/libethereum/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

2
test/ClientBase.cpp → test/libethereum/ClientBase.cpp

@ -21,7 +21,7 @@
#include <boost/test/unit_test.hpp>
#include <libdevcore/CommonJS.h>
#include "TestUtils.h"
#include "../TestUtils.h"
using namespace std;
using namespace dev;

0
test/ManyFunctions.sol → test/libethereum/StateTestsFiller/ManyFunctions.sol

0
test/ManyFunctionsGenerator.py → test/libethereum/StateTestsFiller/ManyFunctionsGenerator.py

0
test/stBlockHashTestFiller.json → test/libethereum/StateTestsFiller/stBlockHashTestFiller.json

0
test/stCallCreateCallCodeTestFiller.json → test/libethereum/StateTestsFiller/stCallCreateCallCodeTestFiller.json

0
test/stExampleFiller.json → test/libethereum/StateTestsFiller/stExampleFiller.json

0
test/stInitCodeTestFiller.json → test/libethereum/StateTestsFiller/stInitCodeTestFiller.json

0
test/stLogTestsFiller.json → test/libethereum/StateTestsFiller/stLogTestsFiller.json

0
test/stMemoryStressTestFiller.json → test/libethereum/StateTestsFiller/stMemoryStressTestFiller.json

0
test/stMemoryTestFiller.json → test/libethereum/StateTestsFiller/stMemoryTestFiller.json

0
test/stPreCompiledContractsFiller.json → test/libethereum/StateTestsFiller/stPreCompiledContractsFiller.json

0
test/stQuadraticComplexityTestFiller.json → test/libethereum/StateTestsFiller/stQuadraticComplexityTestFiller.json

0
test/stRecursiveCreateFiller.json → test/libethereum/StateTestsFiller/stRecursiveCreateFiller.json

0
test/stRefundTestFiller.json → test/libethereum/StateTestsFiller/stRefundTestFiller.json

0
test/stSolidityTestFiller.json → test/libethereum/StateTestsFiller/stSolidityTestFiller.json

0
test/stSpecialTestFiller.json → test/libethereum/StateTestsFiller/stSpecialTestFiller.json

0
test/stSystemOperationsTestFiller.json → test/libethereum/StateTestsFiller/stSystemOperationsTestFiller.json

0
test/stTransactionTestFiller.json → test/libethereum/StateTestsFiller/stTransactionTestFiller.json

0
test/tt10mbDataFieldFiller.json → test/libethereum/TransactionTestsFiller/tt10mbDataFieldFiller.json

0
test/ttTransactionTestFiller.json → test/libethereum/TransactionTestsFiller/ttTransactionTestFiller.json

16
test/blockchain.cpp → test/libethereum/blockchain.cpp

@ -24,7 +24,7 @@
#include <libdevcrypto/FileSystem.h>
#include <libdevcore/TransientDirectory.h>
#include <libethereum/CanonBlockChain.h>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;
using namespace json_spirit;
@ -658,37 +658,37 @@ BOOST_AUTO_TEST_SUITE(BlockChainTests)
BOOST_AUTO_TEST_CASE(bcForkBlockTest)
{
dev::test::executeTests("bcForkBlockTest", "/BlockTests", dev::test::doBlockchainTests);
dev::test::executeTests("bcForkBlockTest", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests);
}
BOOST_AUTO_TEST_CASE(bcInvalidRLPTest)
{
dev::test::executeTests("bcInvalidRLPTest", "/BlockTests", dev::test::doBlockchainTests);
dev::test::executeTests("bcInvalidRLPTest", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests);
}
BOOST_AUTO_TEST_CASE(bcRPC_API_Test)
{
dev::test::executeTests("bcRPC_API_Test", "/BlockTests", dev::test::doBlockchainTests);
dev::test::executeTests("bcRPC_API_Test", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests);
}
BOOST_AUTO_TEST_CASE(bcValidBlockTest)
{
dev::test::executeTests("bcValidBlockTest", "/BlockTests", dev::test::doBlockchainTests);
dev::test::executeTests("bcValidBlockTest", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests);
}
BOOST_AUTO_TEST_CASE(bcInvalidHeaderTest)
{
dev::test::executeTests("bcInvalidHeaderTest", "/BlockTests", dev::test::doBlockchainTests);
dev::test::executeTests("bcInvalidHeaderTest", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests);
}
BOOST_AUTO_TEST_CASE(bcUncleTest)
{
dev::test::executeTests("bcUncleTest", "/BlockTests", dev::test::doBlockchainTests);
dev::test::executeTests("bcUncleTest", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests);
}
BOOST_AUTO_TEST_CASE(bcUncleHeaderValiditiy)
{
dev::test::executeTests("bcUncleHeaderValiditiy", "/BlockTests", dev::test::doBlockchainTests);
dev::test::executeTests("bcUncleHeaderValiditiy", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests);
}
BOOST_AUTO_TEST_CASE(userDefinedFile)

4
test/genesis.cpp → test/libethereum/genesis.cpp

@ -25,10 +25,10 @@
#include <boost/test/unit_test.hpp>
#include "JsonSpiritHeaders.h"
#include "../JsonSpiritHeaders.h"
#include <libdevcore/CommonIO.h>
#include <libethereum/CanonBlockChain.h>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;
using namespace dev;

34
test/state.cpp → test/libethereum/state.cpp

@ -23,14 +23,14 @@
#include <boost/filesystem/operations.hpp>
#include <boost/test/unit_test.hpp>
#include "JsonSpiritHeaders.h"
#include "../JsonSpiritHeaders.h"
#include <libdevcore/CommonIO.h>
#include <libethereum/CanonBlockChain.h>
#include <libethereum/State.h>
#include <libethereum/ExtVM.h>
#include <libethereum/Defaults.h>
#include <libevm/VM.h>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;
using namespace json_spirit;
@ -106,79 +106,79 @@ BOOST_AUTO_TEST_SUITE(StateTests)
BOOST_AUTO_TEST_CASE(stExample)
{
dev::test::executeTests("stExample", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stExample", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stSystemOperationsTest)
{
dev::test::executeTests("stSystemOperationsTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stSystemOperationsTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stCallCreateCallCodeTest)
{
dev::test::executeTests("stCallCreateCallCodeTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stCallCreateCallCodeTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stPreCompiledContracts)
{
dev::test::executeTests("stPreCompiledContracts", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stPreCompiledContracts", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stLogTests)
{
dev::test::executeTests("stLogTests", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stLogTests", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stRecursiveCreate)
{
dev::test::executeTests("stRecursiveCreate", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stRecursiveCreate", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stInitCodeTest)
{
dev::test::executeTests("stInitCodeTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stInitCodeTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stTransactionTest)
{
dev::test::executeTests("stTransactionTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stTransactionTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stSpecialTest)
{
dev::test::executeTests("stSpecialTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stSpecialTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stRefundTest)
{
dev::test::executeTests("stRefundTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stRefundTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stBlockHashTest)
{
dev::test::executeTests("stBlockHashTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stBlockHashTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest)
{
if (test::Options::get().quadratic)
dev::test::executeTests("stQuadraticComplexityTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stQuadraticComplexityTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stMemoryStressTest)
{
if (test::Options::get().memory)
dev::test::executeTests("stMemoryStressTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stMemoryStressTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stSolidityTest)
{
dev::test::executeTests("stSolidityTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stSolidityTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}
BOOST_AUTO_TEST_CASE(stMemoryTest)
{
dev::test::executeTests("stMemoryTest", "/StateTests", dev::test::doStateTests);
dev::test::executeTests("stMemoryTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests);
}

2
test/stateOriginal.cpp → test/libethereum/stateOriginal.cpp

@ -27,7 +27,7 @@
#include <libethereum/State.h>
#include <libethereum/Farm.h>
#include <libethereum/Defaults.h>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;
using namespace dev;
using namespace dev::eth;

8
test/transaction.cpp → test/libethereum/transaction.cpp

@ -20,7 +20,7 @@
* Transaaction test functions.
*/
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;
using namespace json_spirit;
@ -137,12 +137,12 @@ BOOST_AUTO_TEST_SUITE(TransactionTests)
BOOST_AUTO_TEST_CASE(ttTransactionTest)
{
dev::test::executeTests("ttTransactionTest", "/TransactionTests", dev::test::doTransactionTests);
dev::test::executeTests("ttTransactionTest", "/TransactionTests",dev::test::getFolder(__FILE__) + "/TransactionTestsFiller", dev::test::doTransactionTests);
}
BOOST_AUTO_TEST_CASE(ttWrongRLPTransaction)
{
dev::test::executeTests("ttWrongRLPTransaction", "/TransactionTests", dev::test::doTransactionTests);
dev::test::executeTests("ttWrongRLPTransaction", "/TransactionTests",dev::test::getFolder(__FILE__) + "/TransactionTestsFiller", dev::test::doTransactionTests);
}
BOOST_AUTO_TEST_CASE(tt10mbDataField)
@ -151,7 +151,7 @@ BOOST_AUTO_TEST_CASE(tt10mbDataField)
{
auto start = chrono::steady_clock::now();
dev::test::executeTests("tt10mbDataField", "/TransactionTests", dev::test::doTransactionTests);
dev::test::executeTests("tt10mbDataField", "/TransactionTests",dev::test::getFolder(__FILE__) + "/TransactionTestsFiller", dev::test::doTransactionTests);
auto end = chrono::steady_clock::now();
auto duration(chrono::duration_cast<chrono::milliseconds>(end - start));

5
test/libevm/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

0
test/PerformaceTester.sol → test/libevm/VMTestsFiller/performanceTester.sol

0
test/vmArithmeticTestFiller.json → test/libevm/VMTestsFiller/vmArithmeticTestFiller.json

0
test/vmBitwiseLogicOperationTestFiller.json → test/libevm/VMTestsFiller/vmBitwiseLogicOperationTestFiller.json

0
test/vmBlockInfoTestFiller.json → test/libevm/VMTestsFiller/vmBlockInfoTestFiller.json

0
test/vmEnvironmentalInfoTestFiller.json → test/libevm/VMTestsFiller/vmEnvironmentalInfoTestFiller.json

0
test/vmIOandFlowOperationsTestFiller.json → test/libevm/VMTestsFiller/vmIOandFlowOperationsTestFiller.json

0
test/vmLogTestFiller.json → test/libevm/VMTestsFiller/vmLogTestFiller.json

0
test/vmPerformanceTestFiller.json → test/libevm/VMTestsFiller/vmPerformanceTestFiller.json

0
test/vmPushDupSwapTestFiller.json → test/libevm/VMTestsFiller/vmPushDupSwapTestFiller.json

0
test/vmSha3TestFiller.json → test/libevm/VMTestsFiller/vmSha3TestFiller.json

0
test/vmSystemOperationsTestFiller.json → test/libevm/VMTestsFiller/vmSystemOperationsTestFiller.json

0
test/vmtestsFiller.json → test/libevm/VMTestsFiller/vmtestsFiller.json

28
test/vm.cpp → test/libevm/vm.cpp

@ -450,76 +450,76 @@ BOOST_AUTO_TEST_SUITE(VMTests)
BOOST_AUTO_TEST_CASE(vmtests)
{
dev::test::executeTests("vmtests", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmtests", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmArithmeticTest)
{
dev::test::executeTests("vmArithmeticTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmArithmeticTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmBitwiseLogicOperationTest)
{
dev::test::executeTests("vmBitwiseLogicOperationTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmBitwiseLogicOperationTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmSha3Test)
{
dev::test::executeTests("vmSha3Test", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmSha3Test", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmEnvironmentalInfoTest)
{
dev::test::executeTests("vmEnvironmentalInfoTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmEnvironmentalInfoTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmBlockInfoTest)
{
dev::test::executeTests("vmBlockInfoTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmBlockInfoTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmIOandFlowOperationsTest)
{
dev::test::executeTests("vmIOandFlowOperationsTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmIOandFlowOperationsTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmPushDupSwapTest)
{
dev::test::executeTests("vmPushDupSwapTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmPushDupSwapTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmLogTest)
{
dev::test::executeTests("vmLogTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmLogTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmSystemOperationsTest)
{
dev::test::executeTests("vmSystemOperationsTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmSystemOperationsTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmPerformanceTest)
{
if (test::Options::get().performance)
dev::test::executeTests("vmPerformanceTest", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmPerformanceTest", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmInputLimitsTest1)
{
if (test::Options::get().inputLimits)
dev::test::executeTests("vmInputLimits1", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmInputLimits1", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmInputLimitsTest2)
{
if (test::Options::get().inputLimits)
dev::test::executeTests("vmInputLimits2", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmInputLimits2", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmInputLimitsLightTest)
{
if (test::Options::get().inputLimits)
dev::test::executeTests("vmInputLimitsLight", "/VMTests", dev::test::doVMTests);
dev::test::executeTests("vmInputLimitsLight", "/VMTests",dev::test::getFolder(__FILE__) + "/VMTestsFiller", dev::test::doVMTests);
}
BOOST_AUTO_TEST_CASE(vmRandom)

2
test/vm.h → test/libevm/vm.h

@ -38,7 +38,7 @@ along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
#include <libethereum/Transaction.h>
#include <libethereum/ExtVM.h>
#include <libethereum/State.h>
#include "TestHelper.h"
#include "../TestHelper.h"
namespace dev { namespace test {

0
test/Assembly.cpp → test/libevmcore/Assembly.cpp

5
test/libevmcore/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

5
test/libnatspec/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

0
test/natspec.cpp → test/libnatspec/natspec.cpp

5
test/libp2p/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

0
test/net.cpp → test/libp2p/net.cpp

0
test/peer.cpp → test/libp2p/peer.cpp

0
test/rlpx.cpp → test/libp2p/rlpx.cpp

5
test/libsolidity/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

2
test/SolidityABIJSON.cpp → test/libsolidity/SolidityABIJSON.cpp

@ -21,7 +21,7 @@
*/
#if ETH_SOLIDITY
#include "TestHelper.h"
#include "../TestHelper.h"
#include <libsolidity/CompilerStack.h>
#include <json/json.h>
#include <libdevcore/Exceptions.h>

0
test/SolidityCompiler.cpp → test/libsolidity/SolidityCompiler.cpp

2
test/SolidityEndToEndTest.cpp → test/libsolidity/SolidityEndToEndTest.cpp

@ -27,7 +27,7 @@
#include <tuple>
#include <boost/test/unit_test.hpp>
#include <libdevcrypto/SHA3.h>
#include <test/solidityExecutionFramework.h>
#include <test/libsolidity/solidityExecutionFramework.h>
using namespace std;

2
test/SolidityExpressionCompiler.cpp → test/libsolidity/SolidityExpressionCompiler.cpp

@ -31,7 +31,7 @@
#include <libsolidity/CompilerContext.h>
#include <libsolidity/ExpressionCompiler.h>
#include <libsolidity/AST.h>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;

2
test/SolidityInterface.cpp → test/libsolidity/SolidityInterface.cpp

@ -22,7 +22,7 @@
#if ETH_SOLIDITY
#include "TestHelper.h"
#include "../TestHelper.h"
#include <libsolidity/CompilerStack.h>
#include <libsolidity/AST.h>

2
test/SolidityNameAndTypeResolution.cpp → test/libsolidity/SolidityNameAndTypeResolution.cpp

@ -31,7 +31,7 @@
#include <libsolidity/NameAndTypeResolver.h>
#include <libsolidity/Exceptions.h>
#include <libsolidity/GlobalContext.h>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;

2
test/SolidityNatspecJSON.cpp → test/libsolidity/SolidityNatspecJSON.cpp

@ -22,7 +22,7 @@
#if ETH_SOLIDITY
#include "TestHelper.h"
#include "../TestHelper.h"
#include <json/json.h>
#include <libsolidity/CompilerStack.h>
#include <libsolidity/Exceptions.h>

2
test/SolidityOptimizer.cpp → test/libsolidity/SolidityOptimizer.cpp

@ -26,7 +26,7 @@
#include <tuple>
#include <boost/test/unit_test.hpp>
#include <boost/lexical_cast.hpp>
#include <test/solidityExecutionFramework.h>
#include <test/libsolidity/solidityExecutionFramework.h>
#include <libevmcore/CommonSubexpressionEliminator.h>
#include <libevmcore/ControlFlowGraph.h>
#include <libevmcore/Assembly.h>

2
test/SolidityParser.cpp → test/libsolidity/SolidityParser.cpp

@ -28,7 +28,7 @@
#include <libsolidity/Scanner.h>
#include <libsolidity/Parser.h>
#include <libsolidity/Exceptions.h>
#include "TestHelper.h"
#include "../TestHelper.h"
using namespace std;

0
test/SolidityScanner.cpp → test/libsolidity/SolidityScanner.cpp

0
test/SolidityTypes.cpp → test/libsolidity/SolidityTypes.cpp

2
test/solidityExecutionFramework.h → test/libsolidity/solidityExecutionFramework.h

@ -24,7 +24,7 @@
#include <string>
#include <tuple>
#include "TestHelper.h"
#include "../TestHelper.h"
#include <libethereum/State.h>
#include <libethereum/Executive.h>
#include <libsolidity/CompilerStack.h>

0
test/AccountHolder.cpp → test/libweb3jsonrpc/AccountHolder.cpp

5
test/libweb3jsonrpc/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

4
test/jsonrpc.cpp → test/libweb3jsonrpc/jsonrpc.cpp

@ -34,8 +34,8 @@
#include <jsonrpccpp/server/connectors/httpserver.h>
#include <jsonrpccpp/client/connectors/httpclient.h>
#include <set>
#include "JsonSpiritHeaders.h"
#include "TestHelper.h"
#include "../JsonSpiritHeaders.h"
#include "../TestHelper.h"
#include "webthreestubclient.h"
BOOST_AUTO_TEST_SUITE(jsonrpc)

0
test/webthreestubclient.h → test/libweb3jsonrpc/webthreestubclient.h

5
test/libwhisper/CMakeLists.txt

@ -0,0 +1,5 @@
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRCS)
add_sources(${SRCS})

0
test/whisperTopic.cpp → test/libwhisper/whisperTopic.cpp

29
test/randomTestFiller.json

@ -1,29 +0,0 @@
{
"randomVMtest": {
"env" : {
"previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6",
"currentNumber" : "0",
"currentGasLimit" : "1000000",
"currentDifficulty" : "256",
"currentTimestamp" : 1,
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba"
},
"pre" : {
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
"balance" : "1000000000000000000",
"nonce" : "0",
"code" : "random",
"storage": {}
}
},
"exec" : {
"address" : "0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
"origin" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"caller" : "cd1722f3947def4cf144679da39c4c32bdc35681",
"value" : "1000000000000000000",
"data" : "",
"gasPrice" : "100000000000000",
"gas" : "10000"
}
}
}
Loading…
Cancel
Save