mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
parent
efe23ad7b8
commit
8a522834f0
1 changed files with 5 additions and 1 deletions
|
|
@ -112,7 +112,11 @@ void GasMeter::commitCostBlock()
|
|||
// If any uncommited block
|
||||
if (m_checkCall)
|
||||
{
|
||||
m_checkCall->setArgOperand(0, m_builder.getIntN(256, m_blockCost)); // Update block cost in gas check call
|
||||
if (m_blockCost > 0) // If any cost
|
||||
m_checkCall->setArgOperand(0, m_builder.getIntN(256, m_blockCost)); // Update block cost in gas check call
|
||||
else
|
||||
m_checkCall->eraseFromParent(); // Remove the gas check call
|
||||
|
||||
m_checkCall = nullptr; // End cost-block
|
||||
m_blockCost = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue