upgrade filter system

This commit is contained in:
maskpp 2025-04-18 22:17:46 +08:00
parent c2ebc1cd91
commit dfa092f1d3

View file

@ -108,7 +108,6 @@ func (sys *FilterSystem) cachedLogElem(ctx context.Context, blockHash common.Has
if logs == nil { if logs == nil {
return nil, fmt.Errorf("failed to get logs for block #%d (0x%s)", number, blockHash.TerminalString()) return nil, fmt.Errorf("failed to get logs for block #%d (0x%s)", number, blockHash.TerminalString())
} }
// 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) flattened := make([]*types.Log, 0)