mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
Fix GasMeter not nulling cost call
This commit is contained in:
parent
0f4c8eb63f
commit
15714cecf6
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ void GasMeter::commitCostBlock(llvm::Value* _additionalCost)
|
||||||
if (m_blockCost == 0 && !_additionalCost) // Do not check 0
|
if (m_blockCost == 0 && !_additionalCost) // Do not check 0
|
||||||
{
|
{
|
||||||
m_checkCall->eraseFromParent(); // Remove the gas check call
|
m_checkCall->eraseFromParent(); // Remove the gas check call
|
||||||
|
m_checkCall = nullptr;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue