chain

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

chain

The C3 blockchain implementation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Props() Props
	AddMainBlock(block *mainchain.Block) *cid.Cid
	PendingTransactions() []*statechain.Transaction
	MainHead() (*mainchain.Block, error)
	StateHead(hash string) (*statechain.Block, error)
}

Interface ...

type Props

type Props struct {
	P2P p2p.Interface
}

Props ...

type Service

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

Service ...

func New

func New(props *Props) (*Service, error)

New ...

func (Service) AddMainBlock

func (s Service) AddMainBlock(block *mainchain.Block) *cid.Cid

AddMainBlock ...

func (Service) MainHead

func (s Service) MainHead() (*mainchain.Block, error)

MainHead ...

func (Service) PendingTransactions

func (s Service) PendingTransactions() []*statechain.Transaction

PendingTransactions ...

func (Service) Props

func (s Service) Props() Props

Props ...

func (Service) StateHead

func (s Service) StateHead(hash string) (*statechain.Block, error)

StateHead ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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