Documentation ¶
Index ¶
- Constants
- Variables
- func ABCIResponsesResultsHash(ar *tmstate.ABCIResponses) []byte
- func TxPostCheck(state state.State) mempl.PostCheckFunc
- func TxPreCheck(state state.State) mempl.PreCheckFunc
- func WaitForHeight(c Service, h int64, waiter client.Waiter) error
- type ABCIQueryArgs
- type ABCIQueryOptions
- type ABCIQueryWithOptionsArgs
- type ABCIService
- type Batch
- type Block
- func (b *Block) Accept(ctx context.Context) error
- func (b *Block) Bytes() []byte
- func (b *Block) Height() uint64
- func (b *Block) ID() ids.ID
- func (b *Block) Parent() ids.ID
- func (b *Block) Reject(ctx context.Context) error
- func (b *Block) SetStatus(status choices.Status)
- func (b *Block) Status() choices.Status
- func (b *Block) Timestamp() time.Time
- func (b *Block) Verify(context.Context) error
- type BlockHashArgs
- type BlockHeightArgs
- type BlockSearchArgs
- type BlockchainInfoArgs
- type BroadcastTxArgs
- type CheckTxArgs
- type CommitArgs
- type ConsensusParamsArgs
- type Database
- func (db Database) DeleteSync(key []byte) error
- func (db Database) Get(key []byte) ([]byte, error)
- func (db Database) Iterator(start, end []byte) (dbm.Iterator, error)
- func (db Database) NewBatch() dbm.Batch
- func (db Database) Print() error
- func (db Database) ReverseIterator(start, end []byte) (dbm.Iterator, error)
- func (db Database) Set(key []byte, value []byte) error
- func (db Database) SetSync(key []byte, value []byte) error
- func (db Database) Stats() map[string]string
- type GenesisChunkedArgs
- type HistoryService
- type Iterator
- type LocalService
- func (s *LocalService) ABCIInfo(_ *http.Request, _ *struct{}, reply *ctypes.ResultABCIInfo) error
- func (s *LocalService) ABCIQuery(req *http.Request, args *ABCIQueryArgs, reply *ctypes.ResultABCIQuery) error
- func (s *LocalService) ABCIQueryWithOptions(_ *http.Request, args *ABCIQueryWithOptionsArgs, reply *ctypes.ResultABCIQuery) error
- func (s *LocalService) Block(_ *http.Request, args *BlockHeightArgs, reply *ctypes.ResultBlock) error
- func (s *LocalService) BlockByHash(_ *http.Request, args *BlockHashArgs, reply *ctypes.ResultBlock) error
- func (s *LocalService) BlockResults(_ *http.Request, args *BlockHeightArgs, reply *ctypes.ResultBlockResults) error
- func (s *LocalService) BlockSearch(req *http.Request, args *BlockSearchArgs, reply *ctypes.ResultBlockSearch) error
- func (s *LocalService) BlockchainInfo(_ *http.Request, args *BlockchainInfoArgs, reply *ctypes.ResultBlockchainInfo) error
- func (s *LocalService) BroadcastTxAsync(_ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTx) error
- func (s *LocalService) BroadcastTxCommit(_ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTxCommit) error
- func (s *LocalService) BroadcastTxSync(_ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTx) error
- func (s *LocalService) CheckTx(_ *http.Request, args *CheckTxArgs, reply *ctypes.ResultCheckTx) error
- func (s *LocalService) Commit(_ *http.Request, args *CommitArgs, reply *ctypes.ResultCommit) error
- func (s *LocalService) ConsensusParams(_ *http.Request, args *ConsensusParamsArgs, ...) error
- func (s *LocalService) ConsensusState(_ *http.Request, _ *struct{}, reply *ctypes.ResultConsensusState) error
- func (s *LocalService) DumpConsensusState(_ *http.Request, _ *struct{}, reply *ctypes.ResultDumpConsensusState) error
- func (s *LocalService) Genesis(_ *http.Request, _ *struct{}, reply *ctypes.ResultGenesis) error
- func (s *LocalService) GenesisChunked(_ *http.Request, args *GenesisChunkedArgs, reply *ctypes.ResultGenesisChunk) error
- func (s *LocalService) Health(_ *http.Request, _ *struct{}, reply *ctypes.ResultHealth) error
- func (s *LocalService) NetInfo(_ *http.Request, _ *struct{}, reply *ctypes.ResultNetInfo) error
- func (s *LocalService) NumUnconfirmedTxs(_ *http.Request, _ *struct{}, reply *ctypes.ResultUnconfirmedTxs) error
- func (s *LocalService) Status(_ *http.Request, _ *struct{}, reply *ctypes.ResultStatus) error
- func (s *LocalService) Tx(_ *http.Request, args *TxArgs, reply *ctypes.ResultTx) error
- func (s *LocalService) TxSearch(req *http.Request, args *TxSearchArgs, reply *ctypes.ResultTxSearch) error
- func (s *LocalService) UnconfirmedTxs(_ *http.Request, args *UnconfirmedTxsArgs, reply *ctypes.ResultUnconfirmedTxs) error
- func (s *LocalService) Validators(_ *http.Request, args *ValidatorsArgs, reply *ctypes.ResultValidators) error
- type MempoolService
- type NetworkService
- type Service
- type SignService
- type StatusService
- type TxArgs
- type TxSearchArgs
- type UnconfirmedTxsArgs
- type VM
- func (vm *VM) AppGossip(_ context.Context, nodeID ids.NodeID, msg []byte) error
- func (vm *VM) AppRequest(_ context.Context, nodeID ids.NodeID, requestID uint32, time time.Time, ...) error
- func (vm *VM) AppRequestFailed(_ context.Context, nodeID ids.NodeID, requestID uint32) error
- func (vm *VM) AppResponse(_ context.Context, nodeID ids.NodeID, requestID uint32, response []byte) error
- func (vm *VM) Connected(_ context.Context, id ids.NodeID, nodeVersion *version.Application) error
- func (vm *VM) CreateHandlers(_ context.Context) (map[string]*common.HTTPHandler, error)
- func (vm *VM) CreateStaticHandlers(ctx context.Context) (map[string]*common.HTTPHandler, error)
- func (vm *VM) CrossChainAppRequest(_ context.Context, _ ids.ID, _ uint32, deadline time.Time, request []byte) error
- func (vm *VM) CrossChainAppRequestFailed(_ context.Context, _ ids.ID, _ uint32) error
- func (vm *VM) CrossChainAppResponse(_ context.Context, _ ids.ID, _ uint32, response []byte) error
- func (vm *VM) Disconnected(_ context.Context, id ids.NodeID) error
- func (vm *VM) HealthCheck(ctx context.Context) (interface{}, error)
- func (vm *VM) Initialize(_ context.Context, chainCtx *snow.Context, dbManager manager.Manager, ...) error
- func (vm *VM) NotifyBlockReady()
- func (vm *VM) ProxyApp() proxy.AppConns
- func (vm *VM) SetPreference(ctx context.Context, blkID ids.ID) error
- func (vm *VM) SetState(ctx context.Context, state snow.State) error
- func (vm *VM) Shutdown(ctx context.Context) error
- func (vm *VM) Version(ctx context.Context) (string, error)
- type ValidatorsArgs
Constants ¶
View Source
const (
Name = "landslide"
)
Variables ¶
View Source
var (
DefaultABCIQueryOptions = ABCIQueryOptions{Height: 0, Prove: false}
)
View Source
var (
Version = &version.Semantic{
Major: 0,
Minor: 1,
Patch: 1,
}
)
Functions ¶
func ABCIResponsesResultsHash ¶
func ABCIResponsesResultsHash(ar *tmstate.ABCIResponses) []byte
func TxPostCheck ¶
func TxPostCheck(state state.State) mempl.PostCheckFunc
TxPostCheck returns a function to filter transactions after processing. The function limits the gas wanted by a transaction to the block's maximum total gas.
func TxPreCheck ¶
func TxPreCheck(state state.State) mempl.PreCheckFunc
TxPreCheck returns a function to filter transactions before processing. The function limits the size of a transaction to the block's maximum data size.
Types ¶
type ABCIQueryArgs ¶
type ABCIQueryOptions ¶
type ABCIQueryWithOptionsArgs ¶
type ABCIQueryWithOptionsArgs struct { Path string `json:"path"` Data tmbytes.HexBytes `json:"data"` Opts ABCIQueryOptions `json:"opts"` }
type ABCIService ¶
type ABCIService interface { // Reading from abci app ABCIInfo(_ *http.Request, _ *struct{}, reply *ctypes.ResultABCIInfo) error ABCIQuery(_ *http.Request, args *ABCIQueryArgs, reply *ctypes.ResultABCIQuery) error ABCIQueryWithOptions(_ *http.Request, args *ABCIQueryWithOptionsArgs, reply *ctypes.ResultABCIQuery) error // Writing to abci app BroadcastTxCommit(_ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTxCommit) error BroadcastTxAsync(_ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTx) error BroadcastTxSync(_ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTx) error }
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block implements the snowman.Block interface
type BlockHashArgs ¶
type BlockHashArgs struct {
Hash []byte `json:"hash"`
}
type BlockHeightArgs ¶
type BlockHeightArgs struct {
Height *int64 `json:"height"`
}
type BlockSearchArgs ¶
type BlockchainInfoArgs ¶
type BroadcastTxArgs ¶
type CheckTxArgs ¶
type CheckTxArgs struct {
Tx []byte `json:"tx"`
}
type CommitArgs ¶
type CommitArgs struct {
Height *int64 `json:"height"`
}
type ConsensusParamsArgs ¶
type ConsensusParamsArgs struct {
Height *int64 `json:"height"`
}
type GenesisChunkedArgs ¶
type GenesisChunkedArgs struct {
Chunk uint `json:"chunk"`
}
type HistoryService ¶
type HistoryService interface { BlockchainInfo(_ *http.Request, args *BlockchainInfoArgs, reply *ctypes.ResultBlockchainInfo) error Genesis(_ *http.Request, _ *struct{}, reply *ctypes.ResultGenesis) error GenesisChunked(_ *http.Request, args *GenesisChunkedArgs, reply *ctypes.ResultGenesisChunk) error }
type LocalService ¶
type LocalService struct {
// contains filtered or unexported fields
}
func (*LocalService) ABCIInfo ¶
func (s *LocalService) ABCIInfo(_ *http.Request, _ *struct{}, reply *ctypes.ResultABCIInfo) error
func (*LocalService) ABCIQuery ¶
func (s *LocalService) ABCIQuery(req *http.Request, args *ABCIQueryArgs, reply *ctypes.ResultABCIQuery) error
func (*LocalService) ABCIQueryWithOptions ¶
func (s *LocalService) ABCIQueryWithOptions( _ *http.Request, args *ABCIQueryWithOptionsArgs, reply *ctypes.ResultABCIQuery, ) error
func (*LocalService) Block ¶
func (s *LocalService) Block(_ *http.Request, args *BlockHeightArgs, reply *ctypes.ResultBlock) error
func (*LocalService) BlockByHash ¶
func (s *LocalService) BlockByHash(_ *http.Request, args *BlockHashArgs, reply *ctypes.ResultBlock) error
func (*LocalService) BlockResults ¶
func (s *LocalService) BlockResults(_ *http.Request, args *BlockHeightArgs, reply *ctypes.ResultBlockResults) error
func (*LocalService) BlockSearch ¶
func (s *LocalService) BlockSearch(req *http.Request, args *BlockSearchArgs, reply *ctypes.ResultBlockSearch) error
func (*LocalService) BlockchainInfo ¶
func (s *LocalService) BlockchainInfo( _ *http.Request, args *BlockchainInfoArgs, reply *ctypes.ResultBlockchainInfo, ) error
func (*LocalService) BroadcastTxAsync ¶
func (s *LocalService) BroadcastTxAsync( _ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTx, ) error
func (*LocalService) BroadcastTxCommit ¶
func (s *LocalService) BroadcastTxCommit( _ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTxCommit, ) error
func (*LocalService) BroadcastTxSync ¶
func (s *LocalService) BroadcastTxSync(_ *http.Request, args *BroadcastTxArgs, reply *ctypes.ResultBroadcastTx) error
func (*LocalService) CheckTx ¶
func (s *LocalService) CheckTx(_ *http.Request, args *CheckTxArgs, reply *ctypes.ResultCheckTx) error
func (*LocalService) Commit ¶
func (s *LocalService) Commit(_ *http.Request, args *CommitArgs, reply *ctypes.ResultCommit) error
func (*LocalService) ConsensusParams ¶
func (s *LocalService) ConsensusParams(_ *http.Request, args *ConsensusParamsArgs, reply *ctypes.ResultConsensusParams) error
func (*LocalService) ConsensusState ¶
func (s *LocalService) ConsensusState(_ *http.Request, _ *struct{}, reply *ctypes.ResultConsensusState) error
ToDo: we doesn't have consensusState
func (*LocalService) DumpConsensusState ¶
func (s *LocalService) DumpConsensusState(_ *http.Request, _ *struct{}, reply *ctypes.ResultDumpConsensusState) error
ToDo: we doesn't have consensusState
func (*LocalService) Genesis ¶
func (s *LocalService) Genesis(_ *http.Request, _ *struct{}, reply *ctypes.ResultGenesis) error
func (*LocalService) GenesisChunked ¶
func (s *LocalService) GenesisChunked(_ *http.Request, args *GenesisChunkedArgs, reply *ctypes.ResultGenesisChunk) error
func (*LocalService) Health ¶
func (s *LocalService) Health(_ *http.Request, _ *struct{}, reply *ctypes.ResultHealth) error
func (*LocalService) NetInfo ¶
func (s *LocalService) NetInfo(_ *http.Request, _ *struct{}, reply *ctypes.ResultNetInfo) error
ToDo: no peers, because it's vm
func (*LocalService) NumUnconfirmedTxs ¶
func (s *LocalService) NumUnconfirmedTxs(_ *http.Request, _ *struct{}, reply *ctypes.ResultUnconfirmedTxs) error
func (*LocalService) Status ¶
func (s *LocalService) Status(_ *http.Request, _ *struct{}, reply *ctypes.ResultStatus) error
func (*LocalService) TxSearch ¶
func (s *LocalService) TxSearch(req *http.Request, args *TxSearchArgs, reply *ctypes.ResultTxSearch) error
func (*LocalService) UnconfirmedTxs ¶
func (s *LocalService) UnconfirmedTxs(_ *http.Request, args *UnconfirmedTxsArgs, reply *ctypes.ResultUnconfirmedTxs) error
func (*LocalService) Validators ¶
func (s *LocalService) Validators(_ *http.Request, args *ValidatorsArgs, reply *ctypes.ResultValidators) error
type MempoolService ¶
type MempoolService interface { UnconfirmedTxs(_ *http.Request, args *UnconfirmedTxsArgs, reply *ctypes.ResultUnconfirmedTxs) error NumUnconfirmedTxs(_ *http.Request, _ *struct{}, reply *ctypes.ResultUnconfirmedTxs) error CheckTx(_ *http.Request, args *CheckTxArgs, reply *ctypes.ResultCheckTx) error }
type NetworkService ¶
type NetworkService interface { NetInfo(_ *http.Request, _ *struct{}, reply *ctypes.ResultNetInfo) error DumpConsensusState(_ *http.Request, _ *struct{}, reply *ctypes.ResultDumpConsensusState) error ConsensusState(_ *http.Request, _ *struct{}, reply *ctypes.ResultConsensusState) error ConsensusParams(_ *http.Request, args *ConsensusParamsArgs, reply *ctypes.ResultConsensusParams) error Health(_ *http.Request, _ *struct{}, reply *ctypes.ResultHealth) error }
type Service ¶
type Service interface { ABCIService HistoryService NetworkService SignService StatusService MempoolService }
func NewService ¶
type SignService ¶
type SignService interface { Block(_ *http.Request, args *BlockHeightArgs, reply *ctypes.ResultBlock) error BlockByHash(_ *http.Request, args *BlockHashArgs, reply *ctypes.ResultBlock) error BlockResults(_ *http.Request, args *BlockHeightArgs, reply *ctypes.ResultBlockResults) error Commit(_ *http.Request, args *CommitArgs, reply *ctypes.ResultCommit) error Validators(_ *http.Request, args *ValidatorsArgs, reply *ctypes.ResultValidators) error Tx(_ *http.Request, args *TxArgs, reply *ctypes.ResultTx) error TxSearch(_ *http.Request, args *TxSearchArgs, reply *ctypes.ResultTxSearch) error BlockSearch(_ *http.Request, args *BlockSearchArgs, reply *ctypes.ResultBlockSearch) error }
type StatusService ¶
type StatusService interface {
Status(_ *http.Request, _ *struct{}, reply *ctypes.ResultStatus) error
}
type TxSearchArgs ¶
type UnconfirmedTxsArgs ¶
type UnconfirmedTxsArgs struct {
Limit *int `json:"limit"`
}
type VM ¶
type VM struct { // *chain.State helps to implement the VM interface by wrapping blocks // with an efficient caching layer. *chain.State // contains filtered or unexported fields }
func NewVM ¶
func NewVM(app abciTypes.Application) *VM
func (*VM) AppRequest ¶
func (*VM) AppRequestFailed ¶
This VM doesn't (currently) have any app-specific messages
func (*VM) AppResponse ¶
func (vm *VM) AppResponse(_ context.Context, nodeID ids.NodeID, requestID uint32, response []byte) error
This VM doesn't (currently) have any app-specific messages
func (*VM) CreateHandlers ¶
func (*VM) CreateStaticHandlers ¶
func (*VM) CrossChainAppRequest ¶
func (*VM) CrossChainAppRequestFailed ¶
func (*VM) CrossChainAppResponse ¶
func (*VM) Initialize ¶
func (*VM) NotifyBlockReady ¶
func (vm *VM) NotifyBlockReady()
NotifyBlockReady tells the consensus engine that a new block is ready to be created
type ValidatorsArgs ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.