Skip to content

Commit 6c5f9ba

Browse files
eth/catalyst: rename catalyst -> Engine API in logs
1 parent 661c3e0 commit 6c5f9ba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cmd/utils/flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ func RegisterEthService(stack *node.Node, cfg *ethconfig.Config) (ethapi.Backend
19941994
}
19951995
stack.RegisterAPIs(tracers.APIs(backend.ApiBackend))
19961996
if err := lescatalyst.Register(stack, backend); err != nil {
1997-
Fatalf("Failed to register the catalyst service: %v", err)
1997+
Fatalf("Failed to register the Engine API service: %v", err)
19981998
}
19991999
return backend.ApiBackend, nil
20002000
}
@@ -2009,7 +2009,7 @@ func RegisterEthService(stack *node.Node, cfg *ethconfig.Config) (ethapi.Backend
20092009
}
20102010
}
20112011
if err := ethcatalyst.Register(stack, backend); err != nil {
2012-
Fatalf("Failed to register the catalyst service: %v", err)
2012+
Fatalf("Failed to register the Engine API service: %v", err)
20132013
}
20142014
stack.RegisterAPIs(tracers.APIs(backend.APIBackend))
20152015
return backend.APIBackend, backend

eth/catalyst/api.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ import (
3737
"github.com/ethereum/go-ethereum/rpc"
3838
)
3939

40-
// Register adds catalyst APIs to the full node.
40+
// Register adds the engine API to the full node.
4141
func Register(stack *node.Node, backend *eth.Ethereum) error {
42-
log.Warn("Catalyst mode enabled", "protocol", "eth")
42+
log.Warn("Engine API enabled", "protocol", "eth")
4343
stack.RegisterAPIs([]rpc.API{
4444
{
4545
Namespace: "engine",
@@ -62,7 +62,7 @@ type ConsensusAPI struct {
6262
// The underlying blockchain needs to have a valid terminal total difficulty set.
6363
func NewConsensusAPI(eth *eth.Ethereum) *ConsensusAPI {
6464
if eth.BlockChain().Config().TerminalTotalDifficulty == nil {
65-
log.Warn("Catalyst started without valid total difficulty")
65+
panic("Engine API started without valid total difficulty")
6666
}
6767
return &ConsensusAPI{
6868
eth: eth,
@@ -73,7 +73,7 @@ func NewConsensusAPI(eth *eth.Ethereum) *ConsensusAPI {
7373

7474
// ForkchoiceUpdatedV1 has several responsibilities:
7575
// If the method is called with an empty head block:
76-
// we return success, which can be used to check if the catalyst mode is enabled
76+
// we return success, which can be used to check if the engine API is enabled
7777
// If the total difficulty was not reached:
7878
// we return INVALID
7979
// If the finalizedBlockHash is set:

0 commit comments

Comments
 (0)