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
a179ccf6f0
commit
b75c384bee
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.
|
||||
// Fill in whatever we can (txHash is inaccessible at this point).
|
||||
flattened := make([]*types.Log, 0)
|
||||
total := 0
|
||||
for _, txLogs := range logs {
|
||||
total += len(txLogs)
|
||||
}
|
||||
flattened := make([]*types.Log, 0, total)
|
||||
var logIdx uint
|
||||
for i, txLogs := range logs {
|
||||
for _, log := range txLogs {
|
||||
|
|
|
|||
Loading…
Reference in a new issue