Skip to content

Commit

Permalink
test: setting availability window to 1 day and adding full pruner to …
Browse files Browse the repository at this point in the history
…bridge
  • Loading branch information
distractedm1nd committed Jan 9, 2024
1 parent dcdb874 commit 886d0aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions nodebuilder/prune/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/celestiaorg/celestia-node/nodebuilder/node"
"github.com/celestiaorg/celestia-node/pruner"
"github.com/celestiaorg/celestia-node/pruner/archival"
"github.com/celestiaorg/celestia-node/pruner/full"
"github.com/celestiaorg/celestia-node/pruner/light"
"github.com/celestiaorg/celestia-node/share/eds"
Expand Down Expand Up @@ -42,10 +41,14 @@ func ConstructModule(tp node.Type) fx.Option {
case node.Bridge:
return fx.Module("prune",
baseComponents,
fx.Provide(func() pruner.Pruner {
return archival.NewPruner()
fx.Provide(func(store *eds.Store) pruner.Pruner {
return full.NewPruner(store)
}),
fx.Supply(archival.Window),
fx.Supply(full.Window),
//fx.Provide(func() pruner.Pruner {

Check failure on line 48 in nodebuilder/prune/module.go

View workflow job for this annotation

GitHub Actions / go-ci / Lint

commentFormatting: put a space between `//` and comment text (gocritic)
// return archival.NewPruner()
//}),
//fx.Supply(archival.Window),
)
case node.Light:
return fx.Module("prune",
Expand Down
2 changes: 1 addition & 1 deletion pruner/full/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import (

// Window is the availability window for light nodes in the Celestia
// network (30 days).
const Window = pruner.AvailabilityWindow(time.Second * 86400 * 30)
const Window = pruner.AvailabilityWindow(time.Hour * 24)
2 changes: 1 addition & 1 deletion pruner/light/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import (

// Window is the availability window for light nodes in the Celestia
// network (30 days).
const Window = pruner.AvailabilityWindow(time.Second * 86400 * 30)
const Window = pruner.AvailabilityWindow(time.Hour * 24)

0 comments on commit 886d0aa

Please sign in to comment.