blocks

package
v0.0.0-...-75aef46 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Number       uint32              `json:"number"`
	ID           powerplay.Bytes32   `json:"id"`
	Size         uint32              `json:"size"`
	ParentID     powerplay.Bytes32   `json:"parentID"`
	Timestamp    uint64              `json:"timestamp"`
	GasLimit     uint64              `json:"gasLimit"`
	Beneficiary  powerplay.Address   `json:"beneficiary"`
	GasUsed      uint64              `json:"gasUsed"`
	TotalScore   uint64              `json:"totalScore"`
	TxsRoot      powerplay.Bytes32   `json:"txsRoot"`
	StateRoot    powerplay.Bytes32   `json:"stateRoot"`
	ReceiptsRoot powerplay.Bytes32   `json:"receiptsRoot"`
	Signer       powerplay.Address   `json:"signer"`
	IsTrunk      bool                `json:"isTrunk"`
	Transactions []powerplay.Bytes32 `json:"transactions"`
}

Block block

type Blocks

type Blocks struct {
	// contains filtered or unexported fields
}

func New

func New(chain *chain.Chain) *Blocks

func (*Blocks) Mount

func (b *Blocks) Mount(root *mux.Router, pathPrefix string)

Jump to

Keyboard shortcuts

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