Merge pull request #10782 from filecoin-project/10781-add-blockhash-param-to-ethgetLogs

feat: eth: Add support for blockHash param in eth_getLogs
This commit is contained in:
Aayush Rajasekaran 2023-05-12 12:58:46 -04:00 committed by GitHub
commit 1dd24fe18f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1209,7 +1209,7 @@ func (e *EthEvent) installEthFilterSpec(ctx context.Context, filterSpec *ethtype
return nil, xerrors.Errorf("must not specify block hash and from/to block")
}
// TODO: derive a tipset hash from eth hash - might need to push this down into the EventFilterManager
tipsetCid = filterSpec.BlockHash.ToCid()
} else {
if filterSpec.FromBlock == nil || *filterSpec.FromBlock == "latest" {
ts := e.Chain.GetHeaviestTipSet()