Skip to content

Commit a19ca29

Browse files
make justification_bitfield bytes
1 parent 3b7e2bb commit a19ca29

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

eth/beacon/types/states.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import rlp
1313
from rlp.sedes import (
14+
binary,
1415
CountableList,
1516
)
1617

@@ -66,7 +67,8 @@ class BeaconState(rlp.Serializable):
6667
# Finality
6768
('previous_justified_slot', uint64),
6869
('justified_slot', uint64),
69-
('justification_bitfield', uint64),
70+
# TODO: check if justification_bitfield is bytes or int
71+
('justification_bitfield', binary),
7072
('finalized_slot', uint64),
7173

7274
# Recent state

tests/beacon/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def sample_beacon_state_params(sample_fork_data_params):
158158
'persistent_committee_reassignments': (),
159159
'previous_justified_slot': 0,
160160
'justified_slot': 0,
161-
'justification_bitfield': 0,
161+
'justification_bitfield': b'\x00',
162162
'finalized_slot': 0,
163163
'latest_crosslinks': (),
164164
'latest_block_roots': (),

0 commit comments

Comments
 (0)