EIP2929: only add builtin to warm address if they are active
This commit is contained in:
parent
5fdedf0858
commit
5709dbc3e0
@ -1145,9 +1145,11 @@ 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() {
|
||||||
|
if builtin.is_active() {
|
||||||
access_list.insert_address(*address);
|
access_list.insert_address(*address);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if schedule.eip2930 {
|
if schedule.eip2930 {
|
||||||
// optional access list
|
// optional access list
|
||||||
if let TypedTransaction::AccessList(al_tx) = t.as_unsigned() {
|
if let TypedTransaction::AccessList(al_tx) = t.as_unsigned() {
|
||||||
|
Loading…
Reference in New Issue
Block a user