Skip to content

Commit

Permalink
Release: fix logs spam (#10211)
Browse files Browse the repository at this point in the history
for #10203
  • Loading branch information
Giulio2002 authored and yperbasis committed May 6, 2024
1 parent e400835 commit 6642858
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions turbo/execution/eth1/ethereum_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (e *EthereumExecutionModule) canonicalHash(ctx context.Context, tx kv.Tx, b

func (e *EthereumExecutionModule) ValidateChain(ctx context.Context, req *execution.ValidationRequest) (*execution.ValidationReceipt, error) {
if !e.semaphore.TryAcquire(1) {
e.logger.Warn("ethereumExecutionModule.ValidateChain: ExecutionStatus_Busy")
e.logger.Trace("ethereumExecutionModule.ValidateChain: ExecutionStatus_Busy")
return &execution.ValidationReceipt{
LatestValidHash: gointerfaces.ConvertHashToH256(libcommon.Hash{}),
ValidationStatus: execution.ExecutionStatus_Busy,
Expand Down Expand Up @@ -260,7 +260,7 @@ func (e *EthereumExecutionModule) Start(ctx context.Context) {

func (e *EthereumExecutionModule) Ready(context.Context, *emptypb.Empty) (*execution.ReadyResponse, error) {
if !e.semaphore.TryAcquire(1) {
e.logger.Warn("ethereumExecutionModule.Ready: ExecutionStatus_Busy")
e.logger.Trace("ethereumExecutionModule.Ready: ExecutionStatus_Busy")
return &execution.ReadyResponse{Ready: false}, nil
}
defer e.semaphore.Release(1)
Expand Down
2 changes: 1 addition & 1 deletion turbo/execution/eth1/forkchoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func writeForkChoiceHashes(tx kv.RwTx, blockHash, safeHash, finalizedHash common

func (e *EthereumExecutionModule) updateForkChoice(ctx context.Context, originalBlockHash, safeHash, finalizedHash common.Hash, outcomeCh chan forkchoiceOutcome) {
if !e.semaphore.TryAcquire(1) {
e.logger.Warn("ethereumExecutionModule.updateForkChoice: ExecutionStatus_Busy")
e.logger.Trace("ethereumExecutionModule.updateForkChoice: ExecutionStatus_Busy")
sendForkchoiceReceiptWithoutWaiting(outcomeCh, &execution.ForkChoiceReceipt{
LatestValidHash: gointerfaces.ConvertHashToH256(common.Hash{}),
Status: execution.ExecutionStatus_Busy,
Expand Down
2 changes: 1 addition & 1 deletion turbo/execution/eth1/inserters.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (s *EthereumExecutionModule) validatePayloadBlobs(expectedBlobHashes []libc

func (e *EthereumExecutionModule) InsertBlocks(ctx context.Context, req *execution.InsertBlocksRequest) (*execution.InsertionResult, error) {
if !e.semaphore.TryAcquire(1) {
e.logger.Warn("ethereumExecutionModule.InsertBlocks: ExecutionStatus_Busy")
e.logger.Trace("ethereumExecutionModule.InsertBlocks: ExecutionStatus_Busy")
return &execution.InsertionResult{
Result: execution.ExecutionStatus_Busy,
}, nil
Expand Down

0 comments on commit 6642858

Please sign in to comment.