aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-07-03 21:00:22 +0800
committerGav Wood <i@gavwood.com>2014-07-03 21:00:22 +0800
commitd9340fb74ae8aad00ff2bb5d11b191adeb29d94b (patch)
tree036987b93e7db02ed330fbda75acd80c7ed34e04 /vm.cpp
parent2b7133dc13081bb0e24f359dc7216ea8815f91a7 (diff)
downloaddexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.tar
dexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.tar.gz
dexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.tar.bz2
dexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.tar.lz
dexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.tar.xz
dexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.tar.zst
dexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.zip
Windows build coersions.
Diffstat (limited to 'vm.cpp')
-rw-r--r--vm.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/vm.cpp b/vm.cpp
index 1d5c630f..cf159943 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -65,13 +65,12 @@ public:
h160 create(u256 _endowment, u256* _gas, bytesConstRef _init)
{
Address na = right160(sha3(rlpList(myAddress, get<1>(addresses[myAddress]))));
- if (get<0>(addresses[myAddress]) >= _endowment)
+/* if (get<0>(addresses[myAddress]) >= _endowment)
{
- get<0>(addresses[myAddress]) -= _endowment;
get<1>(addresses[myAddress])++;
get<0>(addresses[na]) = _endowment;
// TODO: actually execute...
- }
+ }*/
Transaction t;
t.value = _endowment;
t.gasPrice = gasPrice;
@@ -83,13 +82,12 @@ public:
bool call(Address _receiveAddress, u256 _value, bytesConstRef _data, u256* _gas, bytesRef _out)
{
- if (get<0>(addresses[myAddress]) >= _value)
+/* if (get<0>(addresses[myAddress]) >= _value)
{
- get<0>(addresses[myAddress]) -= _value;
get<1>(addresses[myAddress])++;
get<0>(addresses[_receiveAddress]) += _value;
// TODO: actually execute...
- }
+ }*/
Transaction t;
t.value = _value;
t.gasPrice = gasPrice;
@@ -470,7 +468,7 @@ void doTests(json_spirit::mValue& v, bool _fillin)
BOOST_AUTO_TEST_CASE(vm_tests)
{
// Populate tests first:
- /*try
+ try
{
cnote << "Populating VM tests...";
json_spirit::mValue v;
@@ -483,7 +481,7 @@ BOOST_AUTO_TEST_CASE(vm_tests)
catch (std::exception const& e)
{
BOOST_ERROR("Failed VM Test with Exception: " << e.what());
- }*/
+ }
try
{