Documentation ¶
Index ¶
- Constants
- Variables
- func EnableBP(rpcClient grpcpb.ApiServiceClient, index int) error
- func InitEnv(baseName string, accountName string, publicKey string, privKey string)
- func InitLastConductBPIndex(rpcClient grpcpb.ApiServiceClient) error
- func RandomDisableBP(rpcClient grpcpb.ApiServiceClient) error
- func StartBPRoutine(filePath string)
- func StartEachRoutine(index int)
- type IdList
Constants ¶
View Source
const ( CREATE_CMD = "create" TRANSFER_CMD = "transfer" POST_CMD = "post" FOLLOW_CMD = "follow" VOTE_CMD = "vote" REPLY_CMD = "reply" CONTRACT = "contract" ACQUIRE_TICKET_CMD = "ticket acquire" VOTE_BY_TICKET_CMD = "ticket vote" INIT_ACCOUNT_LENGTH = 8 INIT_POSTID_LENGTH = 8 MAX_ACCOUNT_NUM = 10000000 MAX_POSTID_NUM = 10000000 // 10 million )
Variables ¶
View Source
var BPList []*accountInfo
View Source
var ChainId prototype.ChainId
View Source
var CmdTypeList []string = []string{ CREATE_CMD, TRANSFER_CMD, POST_CMD, FOLLOW_CMD, VOTE_CMD, REPLY_CMD, CONTRACT, ACQUIRE_TICKET_CMD, VOTE_BY_TICKET_CMD, }
View Source
var GlobalAccountLIst accountList
View Source
var IPList []string
View Source
var Mu = &sync.RWMutex{}
View Source
var StopSig = false
View Source
var Wg = &sync.WaitGroup{}
Functions ¶
func InitLastConductBPIndex ¶
func InitLastConductBPIndex(rpcClient grpcpb.ApiServiceClient) error
func RandomDisableBP ¶
func RandomDisableBP(rpcClient grpcpb.ApiServiceClient) error
func StartBPRoutine ¶
func StartBPRoutine(filePath string)
func StartEachRoutine ¶
func StartEachRoutine(index int)
Types ¶
Click to show internal directories.
Click to hide internal directories.