Verbose --internalcl for whenever we fail at startup (#8487)

Just does not make it die silently
This commit is contained in:
Giulio rebuffo 2023-10-16 11:09:43 +02:00 committed by GitHub
parent a7e63da066
commit 2e9436a7d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,7 @@ package caplin1
import ( import (
"context" "context"
"database/sql" "database/sql"
"fmt"
"os" "os"
"path" "path"
"time" "time"
@ -107,7 +108,7 @@ func RunCaplinPhase1(ctx context.Context, sentinel sentinel.SentinelClient, engi
return true return true
}) })
gossipManager := network.NewGossipReceiver(sentinel, forkChoice, beaconConfig, genesisConfig, caplinFreezer) gossipManager := network.NewGossipReceiver(sentinel, forkChoice, beaconConfig, genesisConfig, caplinFreezer)
fmt.Println("A")
{ // start ticking forkChoice { // start ticking forkChoice
go func() { go func() {
tickInterval := time.NewTicker(2 * time.Millisecond) tickInterval := time.NewTicker(2 * time.Millisecond)

View File

@ -798,7 +798,12 @@ func New(ctx context.Context, stack *node.Node, config *ethconfig.Config, logger
if err != nil { if err != nil {
return nil, err return nil, err
} }
go caplin1.RunCaplinPhase1(ctx, client, engine, beaconCfg, genesisCfg, state, nil, dirs, beacon.RouterConfiguration{Active: false}) go func() {
if err := caplin1.RunCaplinPhase1(ctx, client, engine, beaconCfg, genesisCfg, state, nil, dirs, beacon.RouterConfiguration{Active: false}); err != nil {
logger.Error("could not start caplin", "err", err)
}
ctxCancel()
}()
} }
return backend, nil return backend, nil