utils

package
v2.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright (C) THL A29 Limited, a Tencent company. All rights reserved. Copyright (C) BABEC. All rights reserved.

SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	DefaultMaxSendSize   = 20
	DefaultMaxRecvSize   = 20
	DefaultMaxConnection = 1
)

Variables

View Source
var (
	ErrDuplicateTxId    = errors.New("duplicate txId")
	ErrMissingByteCode  = errors.New("missing bytecode")
	ErrClientReachLimit = errors.New("clients reach limit")
)

Functions

func ConstructReceiveMapKey added in v2.2.2

func ConstructReceiveMapKey(names ...string) string

ConstructReceiveMapKey contractName#txId

func GetMaxConnectionFromConfig added in v2.2.2

func GetMaxConnectionFromConfig(config *config.DockerVMConfig) uint32

func GetMaxRecvMsgSizeFromConfig

func GetMaxRecvMsgSizeFromConfig(config *config.DockerVMConfig) uint32

func GetMaxSendMsgSizeFromConfig

func GetMaxSendMsgSizeFromConfig(config *config.DockerVMConfig) uint32

func GetURLFromConfig added in v2.2.2

func GetURLFromConfig(config *config.DockerVMConfig) string

func SplitContractName

func SplitContractName(contractNameAndVersion string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL