Documentation ¶
Index ¶
- func Version() string
- type Kernel
- func (k *Kernel) AcceptUnpkgTxns() error
- func (k *Kernel) CheckReplayAttack(txn *SignedTxn) bool
- func (k *Kernel) GetBlock(ctx *gin.Context)
- func (k *Kernel) GetReceipt(ctx *gin.Context)
- 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 common.Hash) (txn *types.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) WithBronzes(bronzeInstances ...any) *Kernel
- func (k *Kernel) WithExecuteFn(fn env.ExecuteFn)
- func (k *Kernel) WithTripods(tripodInstances ...any) *Kernel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kernel ¶
type Kernel struct { RunMode common.RunMode *env.ChainEnv Land *tripod.Land // contains filtered or unexported fields }
func (*Kernel) AcceptUnpkgTxns ¶
func (*Kernel) CheckReplayAttack ¶
func (*Kernel) GetReceipt ¶ added in v1.0.16
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) WithBronzes ¶ added in v1.2.0
WithBronzes fill the bronzes, if you have bronzes, must use it, and then WithTripods.
func (*Kernel) WithExecuteFn ¶
func (*Kernel) WithTripods ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.