Pinhole optimise working fairly well...

This commit is contained in:
Gav Wood 2014-05-27 18:51:10 +02:00
parent ef95ba9ac3
commit 305ddf1fed

4
vm.cpp
View File

@ -163,7 +163,7 @@ public:
thisTxCode.clear(); thisTxCode.clear();
if (_o["code"].type() == str_type) if (_o["code"].type() == str_type)
thisTxCode = compileLLL(_o["code"].get_str(), nullptr); thisTxCode = compileLLL(_o["code"].get_str());
else else
for (auto const& j: _o["code"].get_array()) for (auto const& j: _o["code"].get_array())
thisTxCode.push_back(toByte(j)); thisTxCode.push_back(toByte(j));
@ -278,7 +278,7 @@ public:
get<2>(a)[adr++] = toInt(k); get<2>(a)[adr++] = toInt(k);
} }
if (o["code"].type() == str_type) if (o["code"].type() == str_type)
get<3>(a) = compileLLL(o["code"].get_str(), nullptr); get<3>(a) = compileLLL(o["code"].get_str());
else else
{ {
get<3>(a).clear(); get<3>(a).clear();