inmem

package
v0.0.0-...-50e3d47 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InmemProxy

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

InmemProxy implements the AppProxy interface natively

func NewInmemProxy

func NewInmemProxy(handler proxy.ProxyHandler,
	logger *logrus.Logger) *InmemProxy

NewInmemProxy instantiates an InmemProxy from a set of handlers. If no logger, a new one is created

func (*InmemProxy) CommitBlock

func (p *InmemProxy) CommitBlock(block hg.Block) (proxy.CommitResponse, error)

CommitBlock calls the commitHandler

func (*InmemProxy) GetSnapshot

func (p *InmemProxy) GetSnapshot(blockIndex int) ([]byte, error)

GetSnapshot calls the snapshotHandler

func (*InmemProxy) Restore

func (p *InmemProxy) Restore(snapshot []byte) error

Restore calls the restoreHandler

func (*InmemProxy) SubmitCh

func (p *InmemProxy) SubmitCh() chan []byte

SubmitCh returns the channel of raw transactions

func (*InmemProxy) SubmitTx

func (p *InmemProxy) SubmitTx(tx []byte)

SubmitTx is called by the App to submit a transaction to Huron

Jump to

Keyboard shortcuts

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