mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
sharding: add parentHash back
Former-commit-id: 125c45ffa41de11f00a55854bea39d3b1057eaa4 [formerly e192b92393f26d84afdc1243e802cb3feb6479b4] Former-commit-id: 5c3d9063f31b312c362074937dc6fbc1192c97fa
This commit is contained in:
@@ -15,6 +15,7 @@ type Collation struct {
|
||||
|
||||
type CollationHeader struct {
|
||||
shardID *big.Int //the shard ID of the shard
|
||||
parentHash *common.Hash //the hash of the parent collation
|
||||
chunkRoot *common.Hash //the root of the chunk tree which identifies collation body
|
||||
period *big.Int //the period number in which collation to be included
|
||||
proposerAddress *common.Address //address of the collation proposer
|
||||
@@ -24,6 +25,7 @@ type CollationHeader struct {
|
||||
func (c *Collation) Header() *CollationHeader { return c.header }
|
||||
func (c *Collation) Transactions() []*types.Transaction { return c.transactions }
|
||||
func (c *Collation) ShardID() *big.Int { return c.header.shardID }
|
||||
func (c *Collation) ParentHash() *common.Hash { return c.header.parentHash }
|
||||
func (c *Collation) Period() *big.Int { return c.header.period }
|
||||
func (c *Collation) ProposerAddress() *common.Address { return c.header.proposerAddress }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user