Documentation ¶
Index ¶
- func Version() string
- type Kernel
- func (k *Kernel) AcceptUnpkgTxns() error
- func (k *Kernel) CheckReplayAttack(txn *SignedTxn) bool
- func (k *Kernel) GetReceipts(ctx *gin.Context)
- func (k *Kernel) GetReceiptsCount(ctx *gin.Context)
- func (k *Kernel) GetTripodInstance(name string) any
- func (k *Kernel) GetTxn(txnHash Hash) (txn *SignedTxn, err error)
- func (k *Kernel) HandleError(err error, ctx *context.WriteContext, block *Block, stxn *SignedTxn) *Receipt
- func (k *Kernel) HandleEvent(ctx *context.WriteContext, block *Block, stxn *SignedTxn) *Receipt
- func (k *Kernel) HandleHttp()
- func (k *Kernel) HandleRead(rdCall *common.RdCall) (*context.ResponseData, error)
- func (k *Kernel) HandleReceipt(ctx *context.WriteContext, receipt *Receipt, block *Block, stxn *SignedTxn)
- func (k *Kernel) HandleTxn(signedWrCall *protocol.SignedWrCall) error
- func (k *Kernel) HandleWS()
- func (k *Kernel) InitBlockChain()
- func (k *Kernel) LocalRun() (newBlock *Block, err error)
- func (k *Kernel) MasterWorkerRun() error
- func (k *Kernel) OrderedExecute(block *Block) error
- func (k *Kernel) PostExecute(block *Block, receipts map[Hash]*Receipt) error
- func (k *Kernel) Run()
- func (k *Kernel) Startup()
- func (k *Kernel) Stop()
- func (k *Kernel) WithExecuteFn(fn ExecuteFn)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kernel ¶
type Kernel struct { RunMode RunMode *ChainEnv Land *Land // contains filtered or unexported fields }
func (*Kernel) AcceptUnpkgTxns ¶
func (*Kernel) CheckReplayAttack ¶
func (*Kernel) GetReceipts ¶
func (*Kernel) GetReceiptsCount ¶
func (*Kernel) GetTripodInstance ¶
func (*Kernel) HandleError ¶
func (k *Kernel) HandleError(err error, ctx *context.WriteContext, block *Block, stxn *SignedTxn) *Receipt
func (*Kernel) HandleEvent ¶
func (k *Kernel) HandleEvent(ctx *context.WriteContext, block *Block, stxn *SignedTxn) *Receipt
func (*Kernel) HandleHttp ¶
func (k *Kernel) HandleHttp()
func (*Kernel) HandleRead ¶
func (*Kernel) HandleReceipt ¶
func (k *Kernel) HandleReceipt(ctx *context.WriteContext, receipt *Receipt, block *Block, stxn *SignedTxn)
func (*Kernel) HandleTxn ¶
func (k *Kernel) HandleTxn(signedWrCall *protocol.SignedWrCall) error
HandleTxn handles txn from outside. You can also self-define your input by calling HandleTxn (not only by default http and ws)
func (*Kernel) InitBlockChain ¶
func (k *Kernel) InitBlockChain()
func (*Kernel) MasterWorkerRun ¶
func (*Kernel) OrderedExecute ¶
func (*Kernel) PostExecute ¶
func (*Kernel) WithExecuteFn ¶
func (k *Kernel) WithExecuteFn(fn ExecuteFn)
Click to show internal directories.
Click to hide internal directories.