mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 23:08:23 +00:00
fix migration SszContainer scripts
This commit is contained in:
@@ -1037,18 +1037,14 @@ impl ProtoArrayForkChoice {
|
||||
|
||||
pub fn as_ssz_container(
|
||||
&self,
|
||||
justified_checkpoint: Checkpoint,
|
||||
finalized_checkpoint: Checkpoint,
|
||||
) -> SszContainer {
|
||||
SszContainer::from_proto_array(self, justified_checkpoint, finalized_checkpoint)
|
||||
SszContainer::from_proto_array(self)
|
||||
}
|
||||
|
||||
pub fn as_bytes(
|
||||
&self,
|
||||
justified_checkpoint: Checkpoint,
|
||||
finalized_checkpoint: Checkpoint,
|
||||
) -> Vec<u8> {
|
||||
self.as_ssz_container(justified_checkpoint, finalized_checkpoint)
|
||||
self.as_ssz_container()
|
||||
.as_ssz_bytes()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user