Documentation ¶
Index ¶
- type Block
- func NewBlockFromHeaderReader(database db.Database, r io.Reader) (*Block, error)
- func NewBlockV01FromHeaderFormat(database db.Database, header *headerFormat) (*Block, error)
- func NewBlockV03FromHeaderFormat(database db.Database, header *headerFormat) (*Block, error)
- func NewFromV0(blkV0 blockv0.Block, dbase db.Database, prevHash []byte, tr module.Transition) (*Block, error)
- func (b *Block) Hash() []byte
- func (b *Block) Height() int64
- func (b *Block) ID() []byte
- func (b *Block) LogsBloom() module.LogsBloom
- func (b *Block) MarshalBody(w io.Writer) error
- func (b *Block) MarshalHeader(w io.Writer) error
- func (b *Block) NormalTransactions() module.TransactionList
- func (b *Block) PatchTransactions() module.TransactionList
- func (b *Block) PrevHash() []byte
- func (b *Block) PrevID() []byte
- func (b *Block) Proposer() module.Address
- func (b *Block) Result() []byte
- func (b *Block) Signature() common.Signature
- func (b *Block) Timestamp() int64
- func (b *Block) ToJSON(version module.JSONVersion) (interface{}, error)
- func (b *Block) TransactionsRoot() []byte
- func (b *Block) Version() int
- func (b *Block) VersionV0() string
- func (b *Block) WriteTo(dbase db.Database) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func NewBlockFromHeaderReader ¶ added in v0.9.7
func NewBlockV01FromHeaderFormat ¶ added in v0.9.7
func NewBlockV03FromHeaderFormat ¶ added in v0.9.7
func (*Block) NormalTransactions ¶
func (b *Block) NormalTransactions() module.TransactionList
func (*Block) PatchTransactions ¶
func (b *Block) PatchTransactions() module.TransactionList
func (*Block) TransactionsRoot ¶ added in v0.9.7
Click to show internal directories.
Click to hide internal directories.