3939
4040
4141from .attestations import Attestation
42- from .proposer_slashings import ProposerSlashing
42+ from .custody_challenges import CustodyChallenge
43+ from .custody_reseeds import CustodyReseed
44+ from .custody_responses import CustodyResponse
4345from .casper_slashings import CasperSlashing
4446from .deposits import Deposit
4547from .exits import Exit
48+ from .proposer_slashings import ProposerSlashing
4649
4750if TYPE_CHECKING :
4851 from eth .beacon .db .chain import BaseBeaconChainDB # noqa: F401
@@ -53,20 +56,29 @@ class BaseBeaconBlockBody(rlp.Serializable):
5356 ('proposer_slashings' , CountableList (ProposerSlashing )),
5457 ('casper_slashings' , CountableList (CasperSlashing )),
5558 ('attestations' , CountableList (Attestation )),
59+ ('custody_reseeds' , CountableList (CustodyReseed )),
60+ ('custody_challenges' , CountableList (CustodyChallenge )),
61+ ('custody_responses' , CountableList (CustodyResponse )),
5662 ('deposits' , CountableList (Deposit )),
5763 ('exits' , CountableList (Exit )),
5864 ]
5965
6066 def __init__ (self ,
61- proposer_slashings : Sequence [int ],
62- casper_slashings : Sequence [int ],
63- attestations : Sequence [int ],
64- deposits : Sequence [int ],
65- exits : Sequence [int ])-> None :
67+ proposer_slashings : Sequence [ProposerSlashing ],
68+ casper_slashings : Sequence [CasperSlashing ],
69+ attestations : Sequence [Attestation ],
70+ custody_reseeds : Sequence [CustodyReseed ],
71+ custody_challenges : Sequence [CustodyResponse ],
72+ custody_responses : Sequence [CustodyResponse ],
73+ deposits : Sequence [Deposit ],
74+ exits : Sequence [Exit ])-> None :
6675 super ().__init__ (
6776 proposer_slashings = proposer_slashings ,
6877 casper_slashings = casper_slashings ,
6978 attestations = attestations ,
79+ custody_reseeds = custody_reseeds ,
80+ custody_challenges = custody_challenges ,
81+ custody_responses = custody_responses ,
7082 deposits = deposits ,
7183 exits = exits ,
7284 )
@@ -166,6 +178,9 @@ def from_root(cls, root: Hash32, chaindb: 'BaseBeaconChainDB') -> 'BeaconBlock':
166178 proposer_slashings = block .body .proposer_slashings ,
167179 casper_slashings = block .body .casper_slashings ,
168180 attestations = block .body .attestations ,
181+ custody_reseeds = block .body .custody_reseeds ,
182+ custody_challenges = block .body .custody_challenges ,
183+ custody_responses = block .body .custody_responses ,
169184 deposits = block .body .deposits ,
170185 exits = block .body .exits ,
171186 )
0 commit comments