diff --git a/activation/poet.go b/activation/poet.go index 4d8530f5d2..9d6541eb3e 100644 --- a/activation/poet.go +++ b/activation/poet.go @@ -462,7 +462,10 @@ func NewPoetServiceWithClient( opt(service) } - err := service.verifyPhaseShiftConfiguration(context.Background()) + ctx, cancel := context.WithTimeout(context.Background(), time.Second*30) + defer cancel() + + err := service.verifyPhaseShiftConfiguration(ctx) switch { case errors.Is(err, errIncompatiblePhaseShift): logger.Fatal("failed to create poet service", zap.String("poet", client.Address())) diff --git a/node/node_test.go b/node/node_test.go index 782258446d..39f1e4307e 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -1253,6 +1253,8 @@ func getTestDefaultConfig(tb testing.TB) *config.Config { cfg.POST.LabelsPerUnit = 32 cfg.POST.K2 = 4 + cfg.BaseConfig.PoetServers = nil + cfg.SMESHING = config.DefaultSmeshingConfig() cfg.SMESHING.Start = false cfg.SMESHING.CoinbaseAccount = types.GenerateAddress([]byte{1}).String()