mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-05 15:52:55 +00:00
core/types/bal: ensure that a written storage slot which was previously read doesn't appear in both the read/write set in the BAL
Co-authored-by: MariusVanDerWijden <m.vanderwijden@live.de>
This commit is contained in:
parent
03c24c1ed8
commit
2ff40c7484
1 changed files with 3 additions and 0 deletions
|
|
@ -169,6 +169,9 @@ func (c ConstructionBlockAccessList) AccumulateMutations(muts StateMutations, id
|
||||||
c[addr].StorageWrites[key] = make(map[uint16]common.Hash)
|
c[addr].StorageWrites[key] = make(map[uint16]common.Hash)
|
||||||
}
|
}
|
||||||
c[addr].StorageWrites[key][idx] = val
|
c[addr].StorageWrites[key][idx] = val
|
||||||
|
|
||||||
|
// delete the key from the tracked reads if it was previously read.
|
||||||
|
delete(c[addr].StorageReads, key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue