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.Entry) *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 Babble
Click to show internal directories.
Click to hide internal directories.