Skip to content

Commit 1657f20

Browse files
committed
PR feedback
1 parent c7fdd99 commit 1657f20

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

eth/beacon/state_machines/forks/serenity/validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def validate_serenity_proposer_signature(state: BeaconState,
4848
proposal_root = ProposalSignedData(
4949
state.slot,
5050
beacon_chain_shard_number,
51-
block_without_signature_root,
51+
block_without_signature_root,
5252
).root
5353

5454
# Get the public key of proposer
@@ -59,7 +59,7 @@ def validate_serenity_proposer_signature(state: BeaconState,
5959
pubkey=proposer_pubkey,
6060
message=proposal_root,
6161
signature=block.signature,
62-
domain=get_domain(state.fork_data, state.slot, SignatureDomain.DOMAIN_PROPOSAL),
62+
domain=get_domain(state.fork_data, state.slot, SignatureDomain.DOMAIN_PROPOSAL),
6363
)
6464

6565
if not is_valid_signature:

tests/beacon/state_machines/test_demo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ def test_demo(base_db,
3737
chaindb = BeaconChainDB(base_db)
3838
state = genesis_state
3939
block = SerenityBeaconBlock(**sample_beacon_block_params).copy(
40-
slot=state.slot + 1,
40+
slot=state.slot + 2,
4141
)
4242

4343
# Sign block
4444
beacon_proposer_index = get_beacon_proposer_index(
45+
# TODO: use `state` when the bug of `get_shard_committees_at_slot` is fixed.
4546
state.copy(
46-
slot=state.slot + 1,
47+
slot=state.slot + 2,
4748
),
4849
block.slot,
4950
config.EPOCH_LENGTH,

0 commit comments

Comments
 (0)