Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
myxtype committed Nov 13, 2020
1 parent 56de86f commit 00b4025
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
23 changes: 23 additions & 0 deletions types/block_header.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package types

import (
"github.com/filecoin-project/go-state-types/crypto"
"github.com/ipfs/go-cid"
"github.com/shopspring/decimal"
)

type BlockHeader struct {
Miner string
Ticket *Ticket
Parents []cid.Cid
ParentWeight decimal.Decimal
Height int64
ParentStateRoot cid.Cid
ParentMessageReceipts cid.Cid
Messages cid.Cid
BLSAggregate *crypto.Signature
Timestamp uint64
BlockSig *crypto.Signature
ForkSignaling uint64
ParentBaseFee decimal.Decimal
}
16 changes: 0 additions & 16 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,6 @@ type Ticket struct {
VRFProof []byte
}

type BlockHeader struct {
Miner string
Ticket *Ticket
Parents []cid.Cid
ParentWeight decimal.Decimal
Height int64
ParentStateRoot cid.Cid
ParentMessageReceipts cid.Cid
Messages cid.Cid
BLSAggregate *crypto.Signature
Timestamp uint64
BlockSig *crypto.Signature
ForkSignaling uint64
ParentBaseFee decimal.Decimal
}

type TipSet struct {
Cids []cid.Cid
Blocks []*BlockHeader
Expand Down

0 comments on commit 00b4025

Please sign in to comment.