blockv1

package
v0.9.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler added in v0.9.8

func NewHandler(
	chain module.Chain,
	v2Handler block.Handler,
) block.Handler

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 NewBlockFromReader added in v0.9.8

func NewBlockFromReader(dbase db.Database, r io.Reader) (*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) Marshal

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

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) Votes

func (b *Block) Votes() module.CommitVoteSet

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