diff options
author | Gav Wood <i@gavwood.com> | 2014-10-08 23:51:51 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-10-08 23:51:51 +0800 |
commit | 9e27cb00da163ae797de8ae334e549ec2068fd2e (patch) | |
tree | 5cec8fd2a5ebb18f779f916de508c711fe2a34f2 | |
parent | f24a017a06be2eff2329ae62391c3c7c1ea6e324 (diff) | |
download | dexon-solidity-9e27cb00da163ae797de8ae334e549ec2068fd2e.tar dexon-solidity-9e27cb00da163ae797de8ae334e549ec2068fd2e.tar.gz dexon-solidity-9e27cb00da163ae797de8ae334e549ec2068fd2e.tar.bz2 dexon-solidity-9e27cb00da163ae797de8ae334e549ec2068fd2e.tar.lz dexon-solidity-9e27cb00da163ae797de8ae334e549ec2068fd2e.tar.xz dexon-solidity-9e27cb00da163ae797de8ae334e549ec2068fd2e.tar.zst dexon-solidity-9e27cb00da163ae797de8ae334e549ec2068fd2e.zip |
PoC-7: Maximum recursion limit 1024.
-rw-r--r-- | vm.cpp | 4 | ||||
-rw-r--r-- | vm.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -31,8 +31,8 @@ using namespace dev; using namespace dev::eth; using namespace dev::test; -FakeExtVM::FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock): - ExtVMFace(Address(), Address(), Address(), 0, 1, bytesConstRef(), bytesConstRef(), _previousBlock, _currentBlock) {} +FakeExtVM::FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock, unsigned _depth): /// TODO: XXX: remove the default argument & fix. + ExtVMFace(Address(), Address(), Address(), 0, 1, bytesConstRef(), bytesConstRef(), _previousBlock, _currentBlock, _depth) {} h160 FakeExtVM::create(u256 _endowment, u256* _gas, bytesConstRef _init, OnOpFunc) { @@ -44,7 +44,7 @@ class FakeExtVM: public eth::ExtVMFace { public: FakeExtVM() {} - FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock); + FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock, unsigned _depth = 0); u256 store(u256 _n) { return std::get<2>(addresses[myAddress])[_n]; } void setStore(u256 _n, u256 _v) { std::get<2>(addresses[myAddress])[_n] = _v; } |