deserialize into txn list

Former-commit-id: 693b5dc0d848efb05de8c1174cb3d9f56065096a [formerly d3c7277c15c7df134e6b7004ee0be82380b00fe4]
Former-commit-id: aeac3cade0d6483c259e02384063b1580781fab6
This commit is contained in:
Eli 2018-05-22 13:37:39 -07:00
parent 50f8a5199e
commit 24ad83c17d

View File

@ -78,7 +78,11 @@ func (s *Shard) CollationByHash(headerHash *common.Hash) (*Collation, error) {
}
// TODO: deserializes the body into a txs slice instead of using
// 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
}