Documentation ¶
Index ¶
- type App
- type BeginRequest
- type BeginResponse
- type CheckRequest
- type CheckResponse
- type CommitConsensusError
- type ExecuteHookFunc
- type ExecuteRequest
- type ExecuteResponse
- type ExecutorApp
- type ExecutorBlock
- type ExecutorBlockState
- type Gossip
- type InfoRequest
- type InfoResponse
- type InitRequest
- type InitResponse
- type Node
- func (n *Node) Check(req *CheckRequest) (*CheckResponse, error)
- func (n *Node) Execute(req *ExecuteRequest) (*ExecuteResponse, error)
- func (n *Node) Info(req *InfoRequest) (*InfoResponse, error)
- func (n *Node) Init(req *InitRequest) (*InitResponse, error)
- func (n *Node) SetExecuteHook(hook ExecuteHookFunc)
- func (n *Node) SetRecorder(rec Recorder)
- func (n *Node) Status(*StatusRequest) (*StatusResponse, error)
- type Recorder
- type RestoreFunc
- type StatusRequest
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface { Info(*InfoRequest) (*InfoResponse, error) Check(*CheckRequest) (*CheckResponse, error) Init(*InitRequest) (*InitResponse, error) Begin(*BeginRequest) (*BeginResponse, error) }
type BeginRequest ¶
type BeginRequest struct {
Params execute.BlockParams
}
type BeginResponse ¶
type CheckRequest ¶
type CheckResponse ¶
type CheckResponse struct {
Results []*protocol.TransactionStatus
}
type CommitConsensusError ¶ added in v1.2.10
type CommitConsensusError [][]byte
func (CommitConsensusError) Error ¶ added in v1.2.10
func (CommitConsensusError) Error() string
type ExecuteHookFunc ¶ added in v1.2.10
type ExecuteRequest ¶ added in v1.2.10
type ExecuteResponse ¶ added in v1.2.10
type ExecuteResponse struct { }
type ExecutorApp ¶
type ExecutorApp struct { Executor execute.Executor Restore RestoreFunc EventBus *events.Bus }
func (*ExecutorApp) Begin ¶
func (a *ExecutorApp) Begin(req *BeginRequest) (*BeginResponse, error)
func (*ExecutorApp) Check ¶
func (a *ExecutorApp) Check(req *CheckRequest) (*CheckResponse, error)
func (*ExecutorApp) Info ¶
func (a *ExecutorApp) Info(*InfoRequest) (*InfoResponse, error)
func (*ExecutorApp) Init ¶
func (a *ExecutorApp) Init(req *InitRequest) (*InitResponse, error)
type ExecutorBlock ¶
func (*ExecutorBlock) Close ¶
func (b *ExecutorBlock) Close() (execute.BlockState, error)
func (*ExecutorBlock) Process ¶
func (b *ExecutorBlock) Process(envelope *messaging.Envelope) ([]*protocol.TransactionStatus, error)
type ExecutorBlockState ¶
type ExecutorBlockState struct { execute.BlockState // contains filtered or unexported fields }
func (*ExecutorBlockState) Commit ¶
func (s *ExecutorBlockState) Commit() error
type InfoRequest ¶
type InfoRequest struct{}
type InfoResponse ¶
type InfoResponse struct { LastBlock *execute.BlockParams LastHash [32]byte }
type InitRequest ¶
type InitRequest struct { Snapshot ioutil.SectionReader Validators []*execute.ValidatorUpdate }
type InitResponse ¶
type InitResponse struct { Hash []byte Validators []*execute.ValidatorUpdate }
type Node ¶
type Node struct { // SkipProposalCheck skips checking the proposed block. SkipProposalCheck bool // IgnoreDeliverResults ignores inconsistencies in the result of DeliverTx // (the results of transactions and signatures). IgnoreDeliverResults bool // IgnoreCommitResults ignores inconsistencies in the result of Commit (the // root hash of the BPT). IgnoreCommitResults bool // contains filtered or unexported fields }
func (*Node) Check ¶
func (n *Node) Check(req *CheckRequest) (*CheckResponse, error)
func (*Node) Execute ¶ added in v1.2.10
func (n *Node) Execute(req *ExecuteRequest) (*ExecuteResponse, error)
func (*Node) Info ¶
func (n *Node) Info(req *InfoRequest) (*InfoResponse, error)
func (*Node) Init ¶
func (n *Node) Init(req *InitRequest) (*InitResponse, error)
func (*Node) SetExecuteHook ¶ added in v1.2.10
func (n *Node) SetExecuteHook(hook ExecuteHookFunc)
func (*Node) SetRecorder ¶ added in v1.2.10
func (*Node) Status ¶ added in v1.2.10
func (n *Node) Status(*StatusRequest) (*StatusResponse, error)
type Recorder ¶
type Recorder interface { DidInit(snapshot ioutil.SectionReader) error DidExecuteBlock(state execute.BlockState, submissions []*messaging.Envelope) error }
type RestoreFunc ¶ added in v1.2.10
type RestoreFunc func(ioutil.SectionReader) error
type StatusRequest ¶ added in v1.2.10
type StatusRequest struct{}
type StatusResponse ¶ added in v1.2.10
Click to show internal directories.
Click to hide internal directories.