Skip to content

Commit 41f8ca0

Browse files
authored
Merge pull request #6749 from spacemeshos/node-split-poc-fix-post-states
fix post states
2 parents 896ee53 + 8a0d978 commit 41f8ca0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

node/smeshing_service.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ func NewSmeshingService(cfg *config.Config, logger *zap.Logger) (*SmeshingServic
362362
grpcPostService.AllowConnections(isCoinbaseSet)
363363
grpcServices[grpcserver.Post] = grpcPostService
364364

365+
postStates := activation.NewPostStates(loggers.add(PostLogger, logger))
365366
nipostBuilder, err := activation.NewNIPostBuilder(
366367
localDB,
367368
grpcPostService,
@@ -370,6 +371,7 @@ func NewSmeshingService(cfg *config.Config, logger *zap.Logger) (*SmeshingServic
370371
clock,
371372
validator,
372373
activation.NipostbuilderWithIdentityStates(idStates),
374+
activation.NipostbuilderWithPostStates(postStates),
373375
activation.WithPoetServices(poetClients...),
374376
)
375377
if err != nil {
@@ -395,6 +397,7 @@ func NewSmeshingService(cfg *config.Config, logger *zap.Logger) (*SmeshingServic
395397
activation.WithPoetConfig(cfg.POET),
396398
// TODO(dshulyak) makes no sense. how we ended using it?
397399
activation.WithPoetRetryInterval(cfg.HARE3.PreroundDelay),
400+
activation.WithPostStates(postStates),
398401
activation.WithIdentityStates(idStates),
399402
activation.WithPoets(poetClients...),
400403
activation.BuilderAtxVersions(cfg.AtxVersions),

0 commit comments

Comments
 (0)