mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 18:21:20 +00:00
deserialize into txn list
Former-commit-id: 693b5dc0d848efb05de8c1174cb3d9f56065096a [formerly d3c7277c15c7df134e6b7004ee0be82380b00fe4] Former-commit-id: aeac3cade0d6483c259e02384063b1580781fab6
This commit is contained in:
parent
50f8a5199e
commit
24ad83c17d
@ -78,7 +78,11 @@ func (s *Shard) CollationByHash(headerHash *common.Hash) (*Collation, error) {
|
|||||||
}
|
}
|
||||||
// TODO: deserializes the body into a txs slice instead of using
|
// TODO: deserializes the body into a txs slice instead of using
|
||||||
// nil as the third arg to MakeCollation.
|
// nil as the third arg to MakeCollation.
|
||||||
col := NewCollation(header, body, nil)
|
txs, err := Deserialize(body)
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("cannot deserialize body", err)
|
||||||
|
}
|
||||||
|
col := NewCollation(header, body, *txs)
|
||||||
return col, nil
|
return col, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user