forked from NethermindEth/nethermind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes OP CL driven block production (NethermindEth#7240)
- Loading branch information
Showing
5 changed files
with
83 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/Nethermind/Nethermind.Optimism/Rpc/OptimismGetPayloadV3Result.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
using Nethermind.Core.Crypto; | ||
using Nethermind.Int256; | ||
using Nethermind.Merge.Plugin.Data; | ||
|
||
namespace Nethermind.Optimism.Rpc; | ||
|
||
public class OptimismGetPayloadV3Result | ||
{ | ||
public OptimismGetPayloadV3Result(GetPayloadV3Result result) | ||
{ | ||
ExecutionPayload = result.ExecutionPayload; | ||
BlockValue = result.BlockValue; | ||
|
||
BlobsBundle = result.BlobsBundle; | ||
ParentBeaconBlockRoot = result.ExecutionPayload.ParentBeaconBlockRoot!; | ||
ShouldOverrideBuilder = result.ShouldOverrideBuilder; | ||
} | ||
|
||
public UInt256 BlockValue { get; } | ||
public ExecutionPayload ExecutionPayload { get; } | ||
|
||
public BlobsBundleV1 BlobsBundle { get; } | ||
|
||
public Hash256 ParentBeaconBlockRoot { get; set; } | ||
|
||
public bool ShouldOverrideBuilder { get; } | ||
|
||
public override string ToString() => $"{{ExecutionPayload: {ExecutionPayload}, Fees: {BlockValue}, BlobsBundle blobs count: {BlobsBundle.Blobs.Length}, ParentBeaconBlockRoot: {ParentBeaconBlockRoot}, ShouldOverrideBuilder {ShouldOverrideBuilder}}}"; | ||
} |