Documentation ¶
Index ¶
- func NewHandler(chain module.Chain, v2Handler block.Handler) block.Handler
- type Block
- func (b *Block) Hash() []byte
- func (b *Block) Height() int64
- func (b *Block) ID() []byte
- func (b *Block) LogsBloom() module.LogsBloom
- func (b *Block) Marshal(w io.Writer) error
- 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) Votes() module.CommitVoteSet
- func (b *Block) WriteTo(dbase db.Database) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func NewBlockFromHeaderReader ¶ added in v0.9.7
func NewBlockFromReader ¶ added in v0.9.8
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
func (*Block) Votes ¶
func (b *Block) Votes() module.CommitVoteSet
Click to show internal directories.
Click to hide internal directories.