feat: add forkchoice update tracker type (#2555)

Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
This commit is contained in:
Matthias Seitz
2023-05-12 12:24:41 +02:00
committed by GitHub
parent 92b557d84e
commit 08972ca5e4
10 changed files with 271 additions and 38 deletions

View File

@@ -22,8 +22,11 @@ pub type ForkChoiceUpdateResult = Result<ForkchoiceUpdated, ForkchoiceUpdateErro
#[derive(Default, Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ForkchoiceState {
/// Hash of the head block.
pub head_block_hash: H256,
/// Hash of the safe block.
pub safe_block_hash: H256,
/// Hash of finalized block.
pub finalized_block_hash: H256,
}