fix: edit lint error

This commit is contained in:
healthykim 2025-09-12 00:41:03 +09:00
parent 987582b5b3
commit fee66bf8e7
3 changed files with 2 additions and 4 deletions

View file

@ -571,7 +571,6 @@ func (p *BlobPool) parseTransaction(id uint64, size uint32, blob []byte) error {
if err := rlp.DecodeBytes(blob, tx); err != nil {
log.Error("Failed to decode blob pool entry", "id", id, "err", err)
return errors.New("unknown tx type")
}
if tx.BlobTxSidecar() == nil {
log.Error("Missing sidecar in blob pool entry", "id", id, "hash", tx.Hash())

View file

@ -45,7 +45,7 @@ func (b *CustodyBitmap) Clear(i uint) error {
func (b CustodyBitmap) OneCount() int {
total := 0
for _, byte := range b {
total += bits.OnesCount8(uint8(byte))
total += bits.OnesCount8(byte)
}
return total
}
@ -56,7 +56,7 @@ func (b CustodyBitmap) Indices() []uint64 {
for byteIdx, val := range b {
v := val
for v != 0 {
tz := bits.TrailingZeros8(uint8(v)) // 0..7
tz := bits.TrailingZeros8(v) // 0..7
idx := uint64(byteIdx*8 + tz)
out = append(out, idx)
v &^= 1 << tz

View file

@ -226,5 +226,4 @@ func RecoverBlobs(cells []Cell, cellIndices []uint64) ([]Blob, error) {
return ckzgRecoverBlobs(cells, cellIndices)
}
return gokzgRecoverBlobs(cells, cellIndices)
}