Skip to content

Commit

Permalink
add comment and fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed Sep 3, 2024
1 parent d8afcaa commit 796d684
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/blob_storage/snappy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package blob_storage
import (
"bufio"
"encoding/binary"
"errors"
"fmt"
"github.com/c2h5oh/datasize"
"github.com/erigontech/erigon/cl/sentinel/communication/ssz_snappy"
Expand Down Expand Up @@ -49,7 +50,7 @@ func snappyReader(r io.Reader, val *types.BlobSidecar) error {
return fmt.Errorf("unable to read varint from message prefix: %v", err)
}
if encodedLn > uint64(16*datasize.MB) {
return fmt.Errorf("payload too big")
return errors.New("payload too big")
}
sr := snappy.NewReader(r)
raw := make([]byte, encodedLn)
Expand Down
5 changes: 3 additions & 2 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package core

import (
"bytes"
"errors"
"fmt"
"github.com/erigontech/erigon/consensus"
"slices"
Expand Down Expand Up @@ -418,10 +419,10 @@ func (st *StateTransition) TransitionDb(refunds bool, gasBailout bool) (*evmtype
if rules.IsNano {
for _, blackListAddr := range types.NanoBlackList {
if blackListAddr == sender.Address() {
return nil, fmt.Errorf("block blacklist account")
return nil, errors.New("block blacklist account")
}
if msg.To() != nil && *msg.To() == blackListAddr {
return nil, fmt.Errorf("block blacklist account")
return nil, errors.New("block blacklist account")
}
}
}
Expand Down
1 change: 1 addition & 0 deletions turbo/snapshotsync/snapshotsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ func WaitForDownloader(ctx context.Context, logPrefix string, dirs datadir.Dirs,
}
}

// Bsc keep all the blob snapshot but Caplin is on the contrary
if caplin == NoCaplin {
blobs = !blobs
}
Expand Down

0 comments on commit 796d684

Please sign in to comment.