Documentation ¶
Index ¶
- Constants
- type TransactionMap
- type TxnPool
- func (tp *TxnPool) AppendTxnPool(txn *Transaction) ErrCode
- func (tp *TxnPool) CleanSubmittedTransactions(txns []*Transaction) error
- func (tp *TxnPool) GetAllTransactions() map[common.Uint256]*Transaction
- func (tp *TxnPool) GetTransaction(hash common.Uint256) *Transaction
- func (tp *TxnPool) GetTransactionCount() int
- func (tp *TxnPool) GetTxnByCount(num int) (map[common.Uint256]*Transaction, error)
Constants ¶
View Source
const (
ExclusivedSigchainHeight = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionMap ¶
func (TransactionMap) Iterate ¶
func (iterable TransactionMap) Iterate(handler func(item *Transaction) ErrCode) ErrCode
type TxnPool ¶
func NewTxnPool ¶
func NewTxnPool() *TxnPool
func (*TxnPool) AppendTxnPool ¶
func (tp *TxnPool) AppendTxnPool(txn *Transaction) ErrCode
append transaction to txnpool when check ok. 1.check transaction. 2.check with ledger(db) 3.check with pool
func (*TxnPool) CleanSubmittedTransactions ¶
clean the trasaction Pool with committed block.
func (*TxnPool) GetAllTransactions ¶
func (*TxnPool) GetTransaction ¶
get the transaction by hash
func (*TxnPool) GetTransactionCount ¶
Click to show internal directories.
Click to hide internal directories.