39
39
40
40
41
41
from .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
43
45
from .casper_slashings import CasperSlashing
44
46
from .deposits import Deposit
45
47
from .exits import Exit
48
+ from .proposer_slashings import ProposerSlashing
46
49
47
50
if TYPE_CHECKING :
48
51
from eth .beacon .db .chain import BaseBeaconChainDB # noqa: F401
@@ -53,20 +56,29 @@ class BaseBeaconBlockBody(rlp.Serializable):
53
56
('proposer_slashings' , CountableList (ProposerSlashing )),
54
57
('casper_slashings' , CountableList (CasperSlashing )),
55
58
('attestations' , CountableList (Attestation )),
59
+ ('custody_reseeds' , CountableList (CustodyReseed )),
60
+ ('custody_challenges' , CountableList (CustodyChallenge )),
61
+ ('custody_responses' , CountableList (CustodyResponse )),
56
62
('deposits' , CountableList (Deposit )),
57
63
('exits' , CountableList (Exit )),
58
64
]
59
65
60
66
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 :
66
75
super ().__init__ (
67
76
proposer_slashings = proposer_slashings ,
68
77
casper_slashings = casper_slashings ,
69
78
attestations = attestations ,
79
+ custody_reseeds = custody_reseeds ,
80
+ custody_challenges = custody_challenges ,
81
+ custody_responses = custody_responses ,
70
82
deposits = deposits ,
71
83
exits = exits ,
72
84
)
@@ -166,6 +178,9 @@ def from_root(cls, root: Hash32, chaindb: 'BaseBeaconChainDB') -> 'BeaconBlock':
166
178
proposer_slashings = block .body .proposer_slashings ,
167
179
casper_slashings = block .body .casper_slashings ,
168
180
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 ,
169
184
deposits = block .body .deposits ,
170
185
exits = block .body .exits ,
171
186
)
0 commit comments