EIP2929: only add builtin to warm address if they are active
This commit is contained in:
parent
5fdedf0858
commit
5709dbc3e0
@ -1145,8 +1145,10 @@ impl<'a, B: 'a + StateBackend> Executive<'a, B> {
|
|||||||
let mut access_list = AccessList::new(schedule.eip2929);
|
let mut access_list = AccessList::new(schedule.eip2929);
|
||||||
|
|
||||||
if schedule.eip2929 {
|
if schedule.eip2929 {
|
||||||
for (address, _) in self.machine.builtins() {
|
for (address, builtin) in self.machine.builtins() {
|
||||||
access_list.insert_address(*address);
|
if builtin.is_active() {
|
||||||
|
access_list.insert_address(*address);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if schedule.eip2930 {
|
if schedule.eip2930 {
|
||||||
// optional access list
|
// optional access list
|
||||||
|
Loading…
Reference in New Issue
Block a user