diff --git a/src/Nethermind/Nethermind.Merge.Plugin/Handlers/NewPayloadHandler.cs b/src/Nethermind/Nethermind.Merge.Plugin/Handlers/NewPayloadHandler.cs index b7712ee4fe0..64293079503 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/Handlers/NewPayloadHandler.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/Handlers/NewPayloadHandler.cs @@ -159,7 +159,7 @@ public async Task> HandleAsync(ExecutionPayload r { if (!_blockValidator.ValidateSuggestedBlock(block, out string? error, validateHashes: false)) { - if (_logger.IsWarn) _logger.Warn(InvalidBlockHelper.GetMessage(block, "suggested block is invalid")); + if (_logger.IsWarn) _logger.Warn(InvalidBlockHelper.GetMessage(block, $"suggested block is invalid, {error}")); return NewPayloadV1Result.Invalid(error); } diff --git a/src/Nethermind/Nethermind.Optimism/InitializeBlockchainOptimism.cs b/src/Nethermind/Nethermind.Optimism/InitializeBlockchainOptimism.cs index f7ce6c9b833..79208162e76 100644 --- a/src/Nethermind/Nethermind.Optimism/InitializeBlockchainOptimism.cs +++ b/src/Nethermind/Nethermind.Optimism/InitializeBlockchainOptimism.cs @@ -27,12 +27,12 @@ public class InitializeBlockchainOptimism(OptimismNethermindApi api) : Initializ protected override async Task InitBlockchain() { - api.RegisterTxType(new OptimismTxDecoder(), Always.Valid); - api.SpecHelper = new(api.ChainSpec.Optimism); api.L1CostHelper = new(api.SpecHelper, api.ChainSpec.Optimism.L1BlockAddress); await base.InitBlockchain(); + + api.RegisterTxType(new OptimismTxDecoder(), Always.Valid); } protected override ITransactionProcessor CreateTransactionProcessor(CodeInfoRepository codeInfoRepository, VirtualMachine virtualMachine)