Skip to content

Commit

Permalink
changes as per review
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Aug 9, 2024
1 parent 483399e commit d289074
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/impl/full/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ type EthModule struct {
EthTraceFilterMaxResults uint64
EthEventHandler *EthEventHandler

EthBlkCache *arc.ARCCache[cid.Cid, *ethtypes.EthBlock]
EthBlkTxCache *arc.ARCCache[cid.Cid, *ethtypes.EthBlock]
EthBlkCache *arc.ARCCache[cid.Cid, *ethtypes.EthBlock] // caches blocks by their CID but blocks only have the transaction hashes
EthBlkTxCache *arc.ARCCache[cid.Cid, *ethtypes.EthBlock] // caches blocks along with full transaction payload by their CID

ChainAPI
MpoolAPI
Expand Down Expand Up @@ -322,7 +322,7 @@ func (a *EthModule) EthGetBlockByHash(ctx context.Context, blkHash ethtypes.EthH
// Fetch the tipset using the block hash
ts, err := a.Chain.GetTipSetByCid(ctx, cid)
if err != nil {
return ethtypes.EthBlock{}, xerrors.Errorf("failed to load tipset by CID %s: %w", blkHash.String(), err)
return ethtypes.EthBlock{}, xerrors.Errorf("failed to load tipset by CID %s: %w", cid, err)
}

// Generate an Ethereum block from the Filecoin tipset
Expand Down

0 comments on commit d289074

Please sign in to comment.