Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DummyClient ¶
type DummyClient struct {
// contains filtered or unexported fields
}
DummyClient is a implementation of the dummy app. Lachesis and the app run in separate processes and communicate through proxy
func NewDummyClient ¶
func NewDummyClient(lachesisProxy proxy.LachesisProxy, handler proxy.App, logger *logrus.Logger) (c *DummyClient, err error)
NewDummyClient instantiates an implementation of the dummy app
func NewDummySocketClient ¶
func NewDummySocketClient(addr string, logger *logrus.Logger) (*DummyClient, error)
NewDummySocketClient constructor
func (*DummyClient) SubmitTx ¶
func (c *DummyClient) SubmitTx(tx []byte) error
SubmitTx sends a transaction to node via proxy
type State ¶
type State struct {
// contains filtered or unexported fields
}
State implements ProxyHandler
func (*State) CommitHandler ¶
CommitHandler triggers on block received
func (*State) GetCommittedTransactions ¶
GetCommittedTransactions returns all final transactions
func (*State) RestoreHandler ¶
RestoreHandler triggers on snapshot for a restore
Click to show internal directories.
Click to hide internal directories.