Versions in this module Expand all Collapse all v3 v3.0.1 Dec 27, 2023 v3.0.0 Dec 23, 2022 Changes in this version + const DefaultMaxConnection + var ErrClientReachLimit = errors.New("clients reach limit") + var ErrDuplicateTxId = errors.New("duplicate txId") + var ErrMissingByteCode = errors.New("missing bytecode") + func ConstructNotifyMapKey(names ...string) string + func ConstructUniqueTxKey(names ...string) string + func CreateDir(directory string) error + func DockerVMMessageFromPool() *protogo.DockerVMMessage + func EnterNextStep(msg *protogo.DockerVMMessage, stepType protogo.StepType, getStr func() string) + func Exists(path string) (bool, error) + func GetMaxConnectionFromConfig(config *config.DockerVMConfig) uint32 + func GetMaxRecvMsgSizeFromConfig(conf *config.DockerVMConfig) uint32 + func GetMaxSendMsgSizeFromConfig(conf *config.DockerVMConfig) uint32 + func PrintTxSteps(msg *protogo.DockerVMMessage) string + func PrintTxStepsWithTime(msg *protogo.DockerVMMessage) (string, bool) + func ReturnToPool(m *protogo.DockerVMMessage) + func SplitContractName(contractNameAndVersion string) string + type BlockTxsDuration struct + func (b *BlockTxsDuration) AddTxDuration(t *TxDuration) + func (b *BlockTxsDuration) FinishTxDuration(t *TxDuration) + func (b *BlockTxsDuration) ToString() string + type BlockTxsDurationMgr struct + func NewBlockTxsDurationMgr() *BlockTxsDurationMgr + func (r *BlockTxsDurationMgr) AddBlockTxsDuration(id string) + func (r *BlockTxsDurationMgr) AddTx(id string, txTime *TxDuration) + func (r *BlockTxsDurationMgr) FinishTx(id string, txTime *TxDuration) + func (r *BlockTxsDurationMgr) PrintBlockTxsDuration(id string) string + func (r *BlockTxsDurationMgr) RemoveBlockTxsDuration(id string) + type SysCallDuration struct + OpType protogo.DockerVMType + StartTime int64 + StorageDuration int64 + TotalDuration int64 + func NewSysCallDuration(opType protogo.DockerVMType, startTime int64, totalTime int64, ...) *SysCallDuration + func (s *SysCallDuration) ToString() string + type TxDuration struct + ContingentSysCallCnt int32 + ContingentSysCallDuration int64 + CrossCallCnt int32 + CrossCallDuration int64 + CrossCallList []*TxDuration + EndTime int64 + OriginalTxId string + Sealed bool + StartTime int64 + StorageDuration int64 + SysCallCnt int32 + SysCallDuration int64 + SysCallList []*SysCallDuration + TotalDuration int64 + TxId string + func NewTxDuration(originalTxId, txId string, startTime int64) *TxDuration + func (e *TxDuration) Add(txDuration *TxDuration) + func (e *TxDuration) AddContingentSysCall(spend int64) + func (e *TxDuration) AddLatestStorageDuration(duration int64) error + func (e *TxDuration) EndSysCall(msg *protogo.DockerVMMessage) error + func (e *TxDuration) GetLatestSysCall() (*SysCallDuration, error) + func (e *TxDuration) PrintSysCallList() string + func (e *TxDuration) Seal() + func (e *TxDuration) StartSysCall(msgType protogo.DockerVMType) + func (e *TxDuration) ToString() string Other modules containing this package chainmaker.org/chainmaker/vm-engine/v2