block

package
v0.0.0-...-caec882 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	GetHeaderByHeight(ctx context.Context, height uint64) (*pb.BlockHeader, error)
	GetBodyByHeight(ctx context.Context, height uint64) (*pb.BlockBody, error)
	GetHeaderByLatest(ctx context.Context) (*pb.BlockHeader, error)
	AddBlock(ctx context.Context, b *pb.Block, receipts []*pb.Receipt) error

	GetReceipt(ctx context.Context, txHash hash.Hash) (*pb.Receipt, error)
}

func New

func New(raw raw.Interface) Interface

Jump to

Keyboard shortcuts

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