mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
upgrade filter system
This commit is contained in:
parent
dfa092f1d3
commit
7ca4bd7082
1 changed files with 1 additions and 1 deletions
|
|
@ -461,7 +461,7 @@ func filterLogs(logs []*types.Log, fromBlock, toBlock *big.Int, addresses []comm
|
|||
}
|
||||
return true
|
||||
}
|
||||
var ret = make([]*types.Log, 0, len(logs))
|
||||
var ret []*types.Log
|
||||
for _, log := range logs {
|
||||
if check(log) {
|
||||
ret = append(ret, log)
|
||||
|
|
|
|||
Loading…
Reference in a new issue