Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Jan 22, 2024
1 parent 5538ec5 commit 94e603c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/common/gethencoding/geth_encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type gethEncodingServiceImpl struct {
func NewGethEncodingService(storage storage.Storage, logger gethlog.Logger) EncodingService {
// todo (tudor) figure out the best values
ristrettoCache, err := ristretto.NewCache(&ristretto.Config{
NumCounters: 1000, // number of keys to track frequency of 100.
NumCounters: 1000, // number of keys to track frequency of.
MaxCost: 1 << 28, // maximum cost of cache (256MB).
BufferItems: 64, // number of keys per Get buffer. Todo - what is this
})
Expand Down Expand Up @@ -355,8 +355,8 @@ func (enc *gethEncodingServiceImpl) CreateEthBlockFromBatch(b *core.Batch) (*typ
transactions: b.Transactions,
withdrawals: nil,
}
block := *(*types.Block)(unsafe.Pointer(&lb))
return &block, nil
// cast the correct local structure to the standard geth block.
return (*types.Block)(unsafe.Pointer(&lb)), nil
}

// DecodeParamBytes decodes the parameters byte array into a slice of interfaces
Expand Down

0 comments on commit 94e603c

Please sign in to comment.