mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
Verbose --internalcl for whenever we fail at startup (#8487)
Just does not make it die silently
This commit is contained in:
parent
a7e63da066
commit
2e9436a7d0
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user