From 7e43bfc109ce4f0993094daaefe6d87dd9b8f0bd Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 3 Dec 2021 12:11:54 +0200 Subject: [PATCH] hook the upgrade schedule to splitstore start --- node/modules/chain.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/modules/chain.go b/node/modules/chain.go index 3518c3b29..b5be24d5d 100644 --- a/node/modules/chain.go +++ b/node/modules/chain.go @@ -78,6 +78,7 @@ func ChainStore(lc fx.Lifecycle, ds dtypes.MetadataDS, basebs dtypes.BaseBlockstore, weight store.WeightFunc, + us stmgr.UpgradeSchedule, j journal.Journal) *store.ChainStore { chain := store.NewChainStore(cbs, sbs, ds, weight, j) @@ -89,7 +90,7 @@ func ChainStore(lc fx.Lifecycle, var startHook func(context.Context) error if ss, ok := basebs.(*splitstore.SplitStore); ok { startHook = func(_ context.Context) error { - err := ss.Start(chain) + err := ss.Start(chain, us) if err != nil { err = xerrors.Errorf("error starting splitstore: %w", err) }