block header changed, updating field indexes to match
This commit is contained in:
parent
f7e6e45442
commit
da72dfae3d
@ -27,10 +27,10 @@ const (
|
||||
|
||||
// some constants for looking up tuple encoded struct fields
|
||||
// field index of Parents field in a block header
|
||||
blockIndexParentsField = 3
|
||||
blockIndexParentsField = 5
|
||||
|
||||
// field index of Messages field in a block header
|
||||
blockIndexMessagesField = 8
|
||||
blockIndexMessagesField = 10
|
||||
|
||||
// field index of AMT node in AMT head
|
||||
amtHeadNodeFieldIndex = 2
|
||||
|
@ -2,9 +2,10 @@ package types
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/minio/blake2b-simd"
|
||||
"math/big"
|
||||
|
||||
"github.com/minio/blake2b-simd"
|
||||
|
||||
"github.com/filecoin-project/specs-actors/actors/abi"
|
||||
"github.com/filecoin-project/specs-actors/actors/crypto"
|
||||
|
||||
@ -43,31 +44,31 @@ type BlockHeader struct {
|
||||
|
||||
Ticket *Ticket // 1
|
||||
|
||||
ElectionProof *ElectionProof
|
||||
ElectionProof *ElectionProof // 2
|
||||
|
||||
BeaconEntries []BeaconEntry
|
||||
BeaconEntries []BeaconEntry // 3
|
||||
|
||||
WinPoStProof []abi.PoStProof
|
||||
WinPoStProof []abi.PoStProof // 4
|
||||
|
||||
Parents []cid.Cid // 3
|
||||
Parents []cid.Cid // 5
|
||||
|
||||
ParentWeight BigInt // 4
|
||||
ParentWeight BigInt // 6
|
||||
|
||||
Height abi.ChainEpoch // 5
|
||||
Height abi.ChainEpoch // 7
|
||||
|
||||
ParentStateRoot cid.Cid // 6
|
||||
ParentStateRoot cid.Cid // 8
|
||||
|
||||
ParentMessageReceipts cid.Cid // 7
|
||||
ParentMessageReceipts cid.Cid // 8
|
||||
|
||||
Messages cid.Cid // 8
|
||||
Messages cid.Cid // 10
|
||||
|
||||
BLSAggregate *crypto.Signature // 9
|
||||
BLSAggregate *crypto.Signature // 11
|
||||
|
||||
Timestamp uint64 // 10
|
||||
Timestamp uint64 // 12
|
||||
|
||||
BlockSig *crypto.Signature // 11
|
||||
BlockSig *crypto.Signature // 13
|
||||
|
||||
ForkSignaling uint64 // 12
|
||||
ForkSignaling uint64 // 14
|
||||
}
|
||||
|
||||
func (b *BlockHeader) ToStorageBlock() (block.Block, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user