mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
More aggresive gas counting optimization: do not commit cost before LOG. [#81461534]
This commit is contained in:
parent
5d5259e4e0
commit
90cb4a753e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue