Browse Source

More aggresive gas counting optimization: do not commit cost before LOG. [#81461534]

cl-refactor
Paweł Bylica 10 years ago
parent
commit
90cb4a753e
  1. 2
      libevmjit/GasMeter.cpp

2
libevmjit/GasMeter.cpp

@ -160,7 +160,7 @@ void GasMeter::countLogData(llvm::Value* _dataLength)
assert(m_checkCall);
assert(m_blockCost > 0); // LOGn instruction is already counted
static_assert(c_logDataGas == 1, "Log data gas cost has changed. Update GasMeter.");
commitCostBlock(_dataLength); // TODO: commit is not necessary
count(_dataLength);
}
void GasMeter::countSha3Data(llvm::Value* _dataLength)

Loading…
Cancel
Save