Documentation
¶
Overview ¶
Copyright © 2019 Annchain Authors <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2019 Annchain Authors <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( IntervalModeConstantInterval = "constant" IntervalModeRandom = "random" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoClient ¶
type AutoClient struct {
SampleAccounts []*account.Account
MyIndex int //only for debug
MyAccount *account.Account //if MyAccount is
SequencerIntervalUs int
TxIntervalUs int
ArchiveInterValUs int
IntervalMode string
NonceSelfDiscipline bool
AutoSequencerEnabled bool
CampainEnable bool
AutoTxEnabled bool
AutoArchiveEnabled bool
Delegate *node.Delegate
ManualChan chan types.TxBaseType
NewRawTx chan types.Txi
TpsTest bool
TpsTestInit bool
TestInsertPool bool
TestDagPush bool
TestSyncBuffer bool
TestSigNature bool
TestSeal bool
// contains filtered or unexported fields
}
func (*AutoClient) Init ¶
func (c *AutoClient) Init()
func (*AutoClient) Pause ¶
func (c *AutoClient) Pause()
func (*AutoClient) Resume ¶
func (c *AutoClient) Resume()
func (*AutoClient) SetTxIntervalUs ¶
func (c *AutoClient) SetTxIntervalUs(i int)
func (*AutoClient) Start ¶
func (c *AutoClient) Start()
func (*AutoClient) Stop ¶
func (c *AutoClient) Stop()
type AutoClientManager ¶
type AutoClientManager struct {
Clients []*AutoClient
SampleAccounts []*account.Account
UpToDateEventListener chan bool
NodeStatusDataProvider og.NodeStatusDataProvider
RegisterReceiver func(c chan types.Txi)
// contains filtered or unexported fields
}
func (*AutoClientManager) Name ¶
func (m *AutoClientManager) Name() string
func (*AutoClientManager) SetTxIntervalUs ¶
func (m *AutoClientManager) SetTxIntervalUs(interval int)
func (*AutoClientManager) Start ¶
func (m *AutoClientManager) Start()
func (*AutoClientManager) Stop ¶
func (m *AutoClientManager) Stop()