blockv1

package
v0.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 NewBlockFromHeaderReader(database db.Database, r io.Reader) (*Block, error)

func NewBlockV01FromHeaderFormat added in v0.9.7

func NewBlockV01FromHeaderFormat(database db.Database, header *headerFormat) (*Block, error)

func NewBlockV03FromHeaderFormat added in v0.9.7

func NewBlockV03FromHeaderFormat(database db.Database, header *headerFormat) (*Block, error)

func NewFromV0 added in v0.9.7

func NewFromV0(
	blkV0 blockv0.Block,
	dbase db.Database,
	prevHash []byte,
	tr module.Transition,
) (*Block, error)

func (*Block) Hash added in v0.9.7

func (b *Block) Hash() []byte

func (*Block) Height

func (b *Block) Height() int64

func (*Block) ID

func (b *Block) ID() []byte

func (*Block) LogsBloom

func (b *Block) LogsBloom() module.LogsBloom

func (*Block) MarshalBody

func (b *Block) MarshalBody(w io.Writer) error

func (*Block) MarshalHeader

func (b *Block) MarshalHeader(w io.Writer) error

func (*Block) NormalTransactions

func (b *Block) NormalTransactions() module.TransactionList

func (*Block) PatchTransactions

func (b *Block) PatchTransactions() module.TransactionList

func (*Block) PrevHash added in v0.9.7

func (b *Block) PrevHash() []byte

func (*Block) PrevID

func (b *Block) PrevID() []byte

func (*Block) Proposer

func (b *Block) Proposer() module.Address

func (*Block) Result

func (b *Block) Result() []byte

func (*Block) Signature added in v0.9.7

func (b *Block) Signature() common.Signature

func (*Block) Timestamp

func (b *Block) Timestamp() int64

func (*Block) ToJSON

func (b *Block) ToJSON(version module.JSONVersion) (interface{}, error)

func (*Block) TransactionsRoot added in v0.9.7

func (b *Block) TransactionsRoot() []byte

func (*Block) Version

func (b *Block) Version() int

func (*Block) VersionV0 added in v0.9.7

func (b *Block) VersionV0() string

func (*Block) WriteTo added in v0.9.7

func (b *Block) WriteTo(dbase db.Database) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL