Skip to content

Commit 19b8f25

Browse files
Bhargavasomuhwwhww
authored andcommitted
Return block root instead of the empty beacon block
1 parent 43f28ea commit 19b8f25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eth/beacon/state_machines/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def validate_proposer_signature(state: BeaconState,
2828
block: BaseBeaconBlock,
2929
beacon_chain_shard_number: int,
3030
epoch_length: int) -> None:
31-
block_without_signature_root = BaseBeaconBlock.create_block_without_signature_root(block).root
31+
block_without_signature_root = BaseBeaconBlock.get_block_without_signature_root(block)
3232

3333
proposal_root = ProposalSignedData(
3434
state.slot,

eth/beacon/types/blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def num_attestations(self) -> int:
115115
return len(self.body.attestations)
116116

117117
@classmethod
118-
def create_block_without_signature_root(
118+
def get_block_without_signature_root(
119119
cls,
120120
block: 'BaseBeaconBlock') -> 'BaseBeaconBlock':
121121
return cls(
@@ -126,4 +126,4 @@ def create_block_without_signature_root(
126126
candidate_pow_receipt_root=block.candidate_pow_receipt_root,
127127
signature=EMPTY_SIGNATURE,
128128
body=block.body,
129-
)
129+
).root

0 commit comments

Comments
 (0)