mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 04:06:44 +00:00
Fix block cost counting (counter not reset)
This commit is contained in:
parent
5470faf9ec
commit
4eb65a8b2c
1 changed files with 1 additions and 0 deletions
|
|
@ -111,6 +111,7 @@ void GasMeter::check(Instruction _inst)
|
||||||
{
|
{
|
||||||
m_checkCall->setArgOperand(0, m_builder.getIntN(256, m_blockCost)); // Update block cost in gas check call
|
m_checkCall->setArgOperand(0, m_builder.getIntN(256, m_blockCost)); // Update block cost in gas check call
|
||||||
m_checkCall = nullptr; // End cost-block
|
m_checkCall = nullptr; // End cost-block
|
||||||
|
m_blockCost = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue