fix raw body

This commit is contained in:
Sina Mahmoodi 2025-04-10 16:14:43 +02:00 committed by lightclient
parent 7c715904b7
commit 276f8be6be
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -163,6 +163,10 @@ func (e *Era) GetRawBodyByNumber(num uint64) ([]byte, error) {
if err != nil {
return nil, err
}
off, err = e.s.SkipN(off, 1)
if err != nil {
return nil, err
}
r, _, err := newSnappyReader(e.s, TypeCompressedBody, off)
if err != nil {
return nil, err