diff options
author | Gav Wood <i@gavwood.com> | 2014-03-20 09:29:40 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-03-20 09:29:40 +0800 |
commit | 182d7daac4b791c29809e8282d421c5fe13e3b34 (patch) | |
tree | add7526d3efd93969ddb97729a8006986af3951b | |
parent | 07e1b513bac15ae0cf50c01b6ca11a06293aa269 (diff) | |
download | dexon-solidity-182d7daac4b791c29809e8282d421c5fe13e3b34.tar.gz dexon-solidity-182d7daac4b791c29809e8282d421c5fe13e3b34.tar.zst dexon-solidity-182d7daac4b791c29809e8282d421c5fe13e3b34.zip |
PoC-3.5. ish.
-rw-r--r-- | vm.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -39,7 +39,7 @@ class FakeExtVM: public ExtVMFace public: FakeExtVM() {} - FakeExtVM(FeeStructure const& _fees, BlockInfo const& _previousBlock, BlockInfo const& _currentBlock, uint _currentNumber): + FakeExtVM(BlockInfo const& _previousBlock, BlockInfo const& _currentBlock, uint _currentNumber): ExtVMFace(Address(), Address(), 0, u256s(), _fees, _previousBlock, _currentBlock, _currentNumber) {} @@ -51,7 +51,7 @@ public: { get<3>(addresses[myAddress])[_n] = _v; } - void mktx(Transaction& _t) + void transact(Transaction& _t) { if (get<0>(addresses[myAddress]) >= _t.value) { @@ -359,8 +359,6 @@ public: cb.difficulty = 256; cb.timestamp = 1; cb.coinbaseAddress = toAddress(sha3("coinbase")); - FeeStructure fees; - fees.setMultiplier(1); FakeExtVM fev(fees, pb, cb, 0); fev.setContract(toAddress(sha3("contract")), ether, 0, compileLisp("(suicide (txsender))")); o["env"] = fev.exportEnv(); |