From 70f93b21da69f64e4c9b495f4d648256c9cfda2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gr=C3=BCner?= <47506558+MegaRedHand@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:21:43 -0300 Subject: [PATCH] Some small changes --- lib/lambda_ethereum_consensus/state_transition/misc.ex | 9 +++------ .../state_transition/state_transition.ex | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/lambda_ethereum_consensus/state_transition/misc.ex b/lib/lambda_ethereum_consensus/state_transition/misc.ex index dd029d20e..060dab96e 100644 --- a/lib/lambda_ethereum_consensus/state_transition/misc.ex +++ b/lib/lambda_ethereum_consensus/state_transition/misc.ex @@ -247,11 +247,8 @@ defmodule LambdaEthereumConsensus.StateTransition.Misc do Return the signing root for the corresponding signing data. """ @spec compute_signing_root(SszTypes.bytes32(), SszTypes.domain()) :: SszTypes.root() - def compute_signing_root(<<_::256>> = data, domain) do - Ssz.hash_tree_root!(%SszTypes.SigningData{ - object_root: data, - domain: domain - }) + def compute_signing_root(<<_::256>> = root, domain) do + Ssz.hash_tree_root!(%SszTypes.SigningData{object_root: root, domain: domain}) end @spec compute_signing_root(any(), SszTypes.domain()) :: SszTypes.root() @@ -259,7 +256,7 @@ defmodule LambdaEthereumConsensus.StateTransition.Misc do ssz_object |> Ssz.hash_tree_root!() |> compute_signing_root(domain) end - @spec compute_signing_root(any(), module, SszTypes.domain()) :: SszTypes.root() + @spec compute_signing_root(any(), module(), SszTypes.domain()) :: SszTypes.root() def compute_signing_root(ssz_object, schema, domain) do ssz_object |> Ssz.hash_tree_root!(schema) |> compute_signing_root(domain) end diff --git a/lib/lambda_ethereum_consensus/state_transition/state_transition.ex b/lib/lambda_ethereum_consensus/state_transition/state_transition.ex index fcce6062d..16c9446d8 100644 --- a/lib/lambda_ethereum_consensus/state_transition/state_transition.ex +++ b/lib/lambda_ethereum_consensus/state_transition/state_transition.ex @@ -113,7 +113,6 @@ defmodule LambdaEthereumConsensus.StateTransition do Bls.valid?(proposer.pubkey, signing_root, signed_block.signature) end - # TODO: uncomment when implemented def process_block(state, block) do verify_and_notify_new_payload = &Execution.verify_and_notify_new_payload/1