mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
Update filter_system.go
This commit is contained in:
parent
919b238c82
commit
1e944c1885
1 changed files with 5 additions and 1 deletions
|
|
@ -115,7 +115,11 @@ func (sys *FilterSystem) cachedLogElem(ctx context.Context, blockHash common.Has
|
||||||
}
|
}
|
||||||
// Database logs are un-derived.
|
// Database logs are un-derived.
|
||||||
// Fill in whatever we can (txHash is inaccessible at this point).
|
// Fill in whatever we can (txHash is inaccessible at this point).
|
||||||
flattened := make([]*types.Log, 0)
|
totalLogs := 0
|
||||||
|
for _, txLogs := range logs {
|
||||||
|
totalLogs += len(txLogs)
|
||||||
|
}
|
||||||
|
flattened := make([]*types.Log, 0, totalLogs)
|
||||||
var logIdx uint
|
var logIdx uint
|
||||||
for i, txLogs := range logs {
|
for i, txLogs := range logs {
|
||||||
for _, log := range txLogs {
|
for _, log := range txLogs {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue