Documentation ¶
Index ¶
- Constants
- 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, winningHash common.Uint256) (map[common.Uint256]*Transaction, error)
Constants ¶
View Source
const (
ExclusivedSigchainHeight = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.