Documentation ¶
Index ¶
Constants ¶
View Source
const ( PackageTxsLimit = 2048 AtxPoolWorkModeNormal AtxPoolWorkMode = 0 AtxPoolWorkModeSuper AtxPoolWorkMode = 1 ATxPoolThreadTxListen ATxPoolThreadsName = "ATxPoolThreadTxListen" ATxPoolThreadTxPackage ATxPoolThreadsName = "ATxPoolThreadTxPackage" ATxPoolThreadRepeater ATxPoolThreadsName = "ATxPoolThreadRepeater" ATxPoolThreadElectoralTimeout ATxPoolThreadsName = "ATxPoolThreadElectoralTimeout" )
View Source
const AtxPoolVersion = "AyaTxPool 0.0.1"
Variables ¶
View Source
var ( ErrRawDBEndoedZeroLen = errors.New("ready to sent content is empty") ErrMessageVerifyExpected = errors.New("message verify failed") ErrTxVerifyExpected = errors.New("tx tid verify expected") ErrTxVerifyInsufficientFunds = errors.New("insufficient funds ( value + cost )") ErrCannotCreateMiningBlock = errors.New("can not create new mining block") )
Functions ¶
This section is empty.
Types ¶
type ATxPoolThreadsName ¶
type ATxPoolThreadsName string
type AtxPoolWorkMode ¶
type AtxPoolWorkMode uint8
type TxPool ¶
type TxPool interface { PowerOn(ctx context.Context) PublishTx(tx *im.Transaction) error ElectoralServices() AElectoral.MemServices GetWorkMode() AtxPoolWorkMode GetState() *State GetTx(hash EComm.Hash) *im.Transaction }
Click to show internal directories.
Click to hide internal directories.