Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog/mrogachev-nit-4725.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Internal
- Add transaction address filtering support to eth_call, matching eth_estimateGas behavior.
11 changes: 9 additions & 2 deletions execution/gethexec/tx_filterer.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@ func (f *txFilterer) Setup(statedb *state.StateDB) {
statedb.SetTxContext(common.Hash{}, 0)
}

func (f *txFilterer) TouchAddresses(statedb *state.StateDB, tx *types.Transaction, sender common.Address) {
func (f *txFilterer) TouchFromTo(statedb *state.StateDB, from common.Address, to *common.Address) {
statedb.TouchAddress(from)
if to != nil {
statedb.TouchAddress(*to)
}
}

func (f *txFilterer) TouchScheduledTxAddresses(statedb *state.StateDB, tx *types.Transaction, sender common.Address) {
touchAddresses(statedb, tx, sender)
}

func (f *txFilterer) CheckFiltered(statedb *state.StateDB) error {
func (f *txFilterer) ApplyEventsAndCheckFiltered(statedb *state.StateDB) error {
applyEventFilter(f.eventFilter, statedb)
if statedb.IsAddressFiltered() {
return state.ErrArbTxFilter
Expand Down
100 changes: 0 additions & 100 deletions system_tests/estimate_gas_filter_test.go

This file was deleted.

Loading
Loading