Skip to content

Commit

Permalink
chore(go.mod): bump go-header (#3052)
Browse files Browse the repository at this point in the history
Bumps go-header to the latest RC to pull in the fix to the `peerTracker`
in celestiaorg/go-header#139. It's suspected
that the `peerTracker`'s aggressive scoring mechanism is causing header
syncing to stall after periods of poor connectivity.

---------

Co-authored-by: ramin <[email protected]>
  • Loading branch information
renaynay and ramin authored Jan 2, 2024
1 parent 77cc973 commit b97175c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/celestiaorg/celestia-app v1.4.0
github.com/celestiaorg/go-ds-badger4 v0.0.0-20230712104058-7ede1c814ac5
github.com/celestiaorg/go-fraud v0.2.0
github.com/celestiaorg/go-header v0.4.1
github.com/celestiaorg/go-header v0.5.0-rc1
github.com/celestiaorg/go-libp2p-messenger v0.2.0
github.com/celestiaorg/nmt v0.20.0
github.com/celestiaorg/rsmt2d v0.11.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ github.com/celestiaorg/go-ds-badger4 v0.0.0-20230712104058-7ede1c814ac5 h1:MJgXv
github.com/celestiaorg/go-ds-badger4 v0.0.0-20230712104058-7ede1c814ac5/go.mod h1:r6xB3nvGotmlTACpAr3SunxtoXeesbqb57elgMJqflY=
github.com/celestiaorg/go-fraud v0.2.0 h1:aaq2JiW0gTnhEdac3l51UCqSyJ4+VjFGTTpN83V4q7I=
github.com/celestiaorg/go-fraud v0.2.0/go.mod h1:lNY1i4K6kUeeE60Z2VK8WXd+qXb8KRzfBhvwPkK6aUc=
github.com/celestiaorg/go-header v0.4.1 h1:bjbUcKDnhrJJ9EoE7vtPpgleNLVjc2S+cB4/qe8nQmo=
github.com/celestiaorg/go-header v0.4.1/go.mod h1:H8xhnDLDLbkpwmWPhCaZyTnIV3dlVxBHPnxNXS2Qu6c=
github.com/celestiaorg/go-header v0.5.0-rc1 h1:DAcVW8V76VI5VU4fOAdXePpq15UFblwZIMZeHCAVr0w=
github.com/celestiaorg/go-header v0.5.0-rc1/go.mod h1:H8xhnDLDLbkpwmWPhCaZyTnIV3dlVxBHPnxNXS2Qu6c=
github.com/celestiaorg/go-libp2p-messenger v0.2.0 h1:/0MuPDcFamQMbw9xTZ73yImqgTO3jHV7wKHvWD/Irao=
github.com/celestiaorg/go-libp2p-messenger v0.2.0/go.mod h1:s9PIhMi7ApOauIsfBcQwbr7m+HBzmVfDIS+QLdgzDSo=
github.com/celestiaorg/merkletree v0.0.0-20210714075610-a84dc3ddbbe4 h1:CJdIpo8n5MFP2MwK0gSRcOVlDlFdQJO1p+FqdxYzmvc=
Expand Down
14 changes: 6 additions & 8 deletions nodebuilder/header/constructors.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,14 @@ func newInitStore[H libhead.Header[H]](
ds datastore.Batching,
ex libhead.Exchange[H],
) (libhead.Store[H], error) {
s, err := store.NewStore[H](ds, store.WithParams(cfg.Store))
if err != nil {
return nil, err
opts := []store.Option{store.WithParams(cfg.Store)}
if MetricsEnabled {
opts = append(opts, store.WithMetrics())
}

if MetricsEnabled {
err = libhead.WithMetrics[H](s)
if err != nil {
return nil, err
}
s, err := store.NewStore[H](ds, opts...)
if err != nil {
return nil, err
}

trustedHash, err := cfg.trustedHash(net)
Expand Down
3 changes: 2 additions & 1 deletion share/eds/byzantine/byzantine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"context"
"fmt"

"github.com/ipfs/boxo/blockservice"

"github.com/celestiaorg/celestia-app/pkg/da"
"github.com/celestiaorg/rsmt2d"
"github.com/ipfs/boxo/blockservice"

"github.com/celestiaorg/celestia-node/share/ipld"
)
Expand Down

0 comments on commit b97175c

Please sign in to comment.