File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
import rlp
13
13
from rlp .sedes import (
14
+ binary ,
14
15
CountableList ,
15
16
)
16
17
@@ -66,7 +67,8 @@ class BeaconState(rlp.Serializable):
66
67
# Finality
67
68
('previous_justified_slot' , uint64 ),
68
69
('justified_slot' , uint64 ),
69
- ('justification_bitfield' , uint64 ),
70
+ # TODO: check if justification_bitfield is bytes or int
71
+ ('justification_bitfield' , binary ),
70
72
('finalized_slot' , uint64 ),
71
73
72
74
# Recent state
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def sample_beacon_state_params(sample_fork_data_params):
158
158
'persistent_committee_reassignments' : (),
159
159
'previous_justified_slot' : 0 ,
160
160
'justified_slot' : 0 ,
161
- 'justification_bitfield' : 0 ,
161
+ 'justification_bitfield' : b' \x00 ' ,
162
162
'finalized_slot' : 0 ,
163
163
'latest_crosslinks' : (),
164
164
'latest_block_roots' : (),
You can’t perform that action at this time.
0 commit comments