diff options
author | chriseth <c@ethdev.com> | 2016-06-18 08:08:20 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-06-29 05:18:55 +0800 |
commit | e5db096da9a2bfb3e6445b2d89cf730c7e22dc6d (patch) | |
tree | 3e950203ff1b0cb53f81447f1350feb3add0da27 /test/IPCSocket.h | |
parent | 007132a78e5d97e0476e1153b14f0ae63f458b04 (diff) | |
download | dexon-solidity-e5db096da9a2bfb3e6445b2d89cf730c7e22dc6d.tar dexon-solidity-e5db096da9a2bfb3e6445b2d89cf730c7e22dc6d.tar.gz dexon-solidity-e5db096da9a2bfb3e6445b2d89cf730c7e22dc6d.tar.bz2 dexon-solidity-e5db096da9a2bfb3e6445b2d89cf730c7e22dc6d.tar.lz dexon-solidity-e5db096da9a2bfb3e6445b2d89cf730c7e22dc6d.tar.xz dexon-solidity-e5db096da9a2bfb3e6445b2d89cf730c7e22dc6d.tar.zst dexon-solidity-e5db096da9a2bfb3e6445b2d89cf730c7e22dc6d.zip |
Fix some more tests.
Diffstat (limited to 'test/IPCSocket.h')
-rw-r--r-- | test/IPCSocket.h | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/test/IPCSocket.h b/test/IPCSocket.h index 89e1d50a..040eb2c8 100644 --- a/test/IPCSocket.h +++ b/test/IPCSocket.h @@ -83,13 +83,15 @@ public: std::string eth_getStorageRoot(std::string const& _address, std::string const& _blockNumber); std::string personal_newAccount(std::string const& _password); void personal_unlockAccount(std::string const& _address, std::string const& _password, int _duration); - void test_setChainParams(std::string const& _author, std::string const& _account, std::string const& _balance); + void test_setChainParams(std::vector<std::string> const& _accounts); void test_setChainParams(std::string const& _config); void test_rewindToBlock(size_t _blockNr); + void test_modifyTimestamp(size_t _timestamp); void test_mineBlocks(int _number); Json::Value rpcCall(std::string const& _methodName, std::vector<std::string> const& _args = std::vector<std::string>(), bool _canFail = false); std::string const& account(size_t _id) const { return m_accounts.at(_id); } + std::string const& accountCreateIfNotExists(size_t _id); private: RPCSession(std::string const& _path); @@ -101,40 +103,6 @@ private: IPCSocket m_ipcSocket; size_t m_rpcSequence = 1; - //Just working example of the node configuration file - std::string const c_genesisConfiguration = R"( - { - "sealEngine": "NoProof", - "options": { - }, - "params": { - "accountStartNonce": "0x", - "maximumExtraDataSize": "0x1000000", - "blockReward": "0x", - "registrar": "", - "allowFutureBlocks": "1" - }, - "genesis": { - "author": "[AUTHOR]", - "timestamp": "0x00", - "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "extraData": "0x", - "gasLimit": "0x1000000000000" - }, - "accounts": { - "0000000000000000000000000000000000000001": { "wei": "1", "precompiled": { "name": "ecrecover", "linear": { "base": 3000, "word": 0 } } }, - "0000000000000000000000000000000000000002": { "wei": "1", "precompiled": { "name": "sha256", "linear": { "base": 60, "word": 12 } } }, - "0000000000000000000000000000000000000003": { "wei": "1", "precompiled": { "name": "ripemd160", "linear": { "base": 600, "word": 120 } } }, - "0000000000000000000000000000000000000004": { "wei": "1", "precompiled": { "name": "identity", "linear": { "base": 15, "word": 3 } } }, - "[ACCOUNT]": { "wei": "[BALANCE]" } - }, - "network": { - "nodes": [ - ] - } - } - )"; - std::vector<std::string> m_accounts; }; |