mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
fix: edit lint error
This commit is contained in:
parent
987582b5b3
commit
fee66bf8e7
3 changed files with 2 additions and 4 deletions
|
|
@ -571,7 +571,6 @@ func (p *BlobPool) parseTransaction(id uint64, size uint32, blob []byte) error {
|
||||||
if err := rlp.DecodeBytes(blob, tx); err != nil {
|
if err := rlp.DecodeBytes(blob, tx); err != nil {
|
||||||
log.Error("Failed to decode blob pool entry", "id", id, "err", err)
|
log.Error("Failed to decode blob pool entry", "id", id, "err", err)
|
||||||
return errors.New("unknown tx type")
|
return errors.New("unknown tx type")
|
||||||
|
|
||||||
}
|
}
|
||||||
if tx.BlobTxSidecar() == nil {
|
if tx.BlobTxSidecar() == nil {
|
||||||
log.Error("Missing sidecar in blob pool entry", "id", id, "hash", tx.Hash())
|
log.Error("Missing sidecar in blob pool entry", "id", id, "hash", tx.Hash())
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ func (b *CustodyBitmap) Clear(i uint) error {
|
||||||
func (b CustodyBitmap) OneCount() int {
|
func (b CustodyBitmap) OneCount() int {
|
||||||
total := 0
|
total := 0
|
||||||
for _, byte := range b {
|
for _, byte := range b {
|
||||||
total += bits.OnesCount8(uint8(byte))
|
total += bits.OnesCount8(byte)
|
||||||
}
|
}
|
||||||
return total
|
return total
|
||||||
}
|
}
|
||||||
|
|
@ -56,7 +56,7 @@ func (b CustodyBitmap) Indices() []uint64 {
|
||||||
for byteIdx, val := range b {
|
for byteIdx, val := range b {
|
||||||
v := val
|
v := val
|
||||||
for v != 0 {
|
for v != 0 {
|
||||||
tz := bits.TrailingZeros8(uint8(v)) // 0..7
|
tz := bits.TrailingZeros8(v) // 0..7
|
||||||
idx := uint64(byteIdx*8 + tz)
|
idx := uint64(byteIdx*8 + tz)
|
||||||
out = append(out, idx)
|
out = append(out, idx)
|
||||||
v &^= 1 << tz
|
v &^= 1 << tz
|
||||||
|
|
|
||||||
|
|
@ -226,5 +226,4 @@ func RecoverBlobs(cells []Cell, cellIndices []uint64) ([]Blob, error) {
|
||||||
return ckzgRecoverBlobs(cells, cellIndices)
|
return ckzgRecoverBlobs(cells, cellIndices)
|
||||||
}
|
}
|
||||||
return gokzgRecoverBlobs(cells, cellIndices)
|
return gokzgRecoverBlobs(cells, cellIndices)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue