Documentation ¶
Index ¶
- type AppendToTxPoolEvent
- type BlockPool
- func (bm *BlockPool) AddDposBlock(dposBlock *types.DposBlock) (bool, bool, error)
- func (bm *BlockPool) AddToBlockMap(block *types.Block)
- func (bm *BlockPool) AddToConfirmMap(confirm *payload.Confirm)
- func (bm *BlockPool) AppendConfirm(confirm *payload.Confirm) (bool, bool, error)
- func (bm *BlockPool) AppendDposBlock(dposBlock *types.DposBlock) (bool, bool, error)
- func (bm *BlockPool) CheckConfirmedBlockOnFork(height uint32, block *types.Block) error
- func (bm *BlockPool) CleanFinalConfirmedBlock(height uint32)
- func (bm *BlockPool) ConfirmBlock(hash common.Uint256) (bool, bool, error)
- func (bm *BlockPool) GetBlock(hash common.Uint256) (*types.Block, bool)
- func (bm *BlockPool) GetConfirm(hash common.Uint256) (*payload.Confirm, bool)
- func (bm *BlockPool) GetDposBlockByHash(hash common.Uint256) (*types.DposBlock, error)
- type ConfirmInfo
- type PopBackEvent
- type TxPool
- func (mp *TxPool) AppendToTxPool(tx *Transaction) elaerr.ELAError
- func (mp *TxPool) AppendToTxPoolWithoutEvent(tx *Transaction) elaerr.ELAError
- func (m *TxPool) AppendTx(tx *types.Transaction) errors.ELAError
- func (mp *TxPool) BroadcastSmallCrossChainTransactions(bestHeight uint32)
- func (mp *TxPool) CheckAndCleanAllTransactions()
- func (mp *TxPool) CleanSubmittedTransactions(block *Block)
- func (m *TxPool) ContainsKey(key interface{}, slotName string) bool
- func (c TxPool) DataExtension() string
- func (c TxPool) Deserialize(r io.Reader) (err error)
- func (c TxPool) EffectivePeriod() uint32
- func (m *TxPool) Empty() bool
- func (c TxPool) Generator() func(buf []byte) checkpoint.ICheckPoint
- func (c TxPool) GetHeight() uint32
- func (mp *TxPool) GetTransaction(hash Uint256) *Transaction
- func (mp *TxPool) GetTransactionCount() int
- func (m *TxPool) GetTx(key interface{}, slotName string) *types.Transaction
- func (mp *TxPool) GetTxsInPool() []*Transaction
- func (mp *TxPool) GetUsedUTXOs() map[string]struct{}
- func (mp *TxPool) HaveTransaction(txId Uint256) bool
- func (mp *TxPool) IsDuplicateSidechainReturnDepositTx(sidechainReturnDepositTxHash Uint256) bool
- func (mp *TxPool) IsDuplicateSidechainTx(sidechainTxHash Uint256) bool
- func (c TxPool) Key() string
- func (c TxPool) LogError(err error)
- func (mp *TxPool) MaybeAcceptTransaction(tx *Transaction) error
- func (c TxPool) OnBlockSaved(block *types.DposBlock)
- func (c TxPool) OnInit()
- func (c TxPool) OnRollbackSeekTo(uint32)
- func (c TxPool) OnRollbackTo(uint32) error
- func (c TxPool) Priority() checkpoint.Priority
- func (m *TxPool) RemoveKey(key interface{}, slotName string) errors.ELAError
- func (mp *TxPool) RemoveTransaction(txn *Transaction)
- func (c TxPool) SavePeriod() uint32
- func (c TxPool) Serialize(w io.Writer) (err error)
- func (c TxPool) SetHeight(height uint32)
- func (c TxPool) Snapshot() checkpoint.ICheckPoint
- func (c TxPool) StartHeight() uint32
- func (m *TxPool) VerifyTx(tx *types.Transaction) errors.ELAError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendToTxPoolEvent ¶ added in v0.5.0
type AppendToTxPoolEvent func(tx *types.Transaction) errors.ELAError
type BlockPool ¶
type BlockPool struct { Chain *blockchain.BlockChain Store blockchain.IChainStore IsCurrent func() bool sync.RWMutex // contains filtered or unexported fields }
func NewBlockPool ¶ added in v0.3.0
func (*BlockPool) AddDposBlock ¶ added in v0.3.0
func (*BlockPool) AddToBlockMap ¶
func (*BlockPool) AddToConfirmMap ¶
func (*BlockPool) AppendConfirm ¶
func (*BlockPool) AppendDposBlock ¶
func (*BlockPool) CheckConfirmedBlockOnFork ¶ added in v0.3.0
func (*BlockPool) CleanFinalConfirmedBlock ¶ added in v0.3.0
func (*BlockPool) ConfirmBlock ¶
func (*BlockPool) GetConfirm ¶
type ConfirmInfo ¶ added in v0.3.4
type PopBackEvent ¶ added in v0.5.0
type TxPool ¶
func (*TxPool) AppendToTxPool ¶ added in v0.3.0
append transaction to txnpool when check ok, and broadcast the transaction. 1.check 2.check with ledger(db) 3.check with pool
func (*TxPool) AppendToTxPoolWithoutEvent ¶ added in v0.7.0
append transaction to txnpool when check ok. 1.check 2.check with ledger(db) 3.check with pool
func (*TxPool) AppendTx ¶ added in v0.5.0
func (m *TxPool) AppendTx(tx *types.Transaction) errors.ELAError
func (*TxPool) BroadcastSmallCrossChainTransactions ¶ added in v0.8.0
func (*TxPool) CheckAndCleanAllTransactions ¶ added in v0.7.0
func (mp *TxPool) CheckAndCleanAllTransactions()
func (*TxPool) CleanSubmittedTransactions ¶
func (mp *TxPool) CleanSubmittedTransactions(block *Block)
clean the transaction Pool with committed block.
func (*TxPool) ContainsKey ¶ added in v0.5.0
func (TxPool) DataExtension ¶ added in v0.5.0
func (c TxPool) DataExtension() string
func (TxPool) Deserialize ¶ added in v0.5.0
func (TxPool) EffectivePeriod ¶ added in v0.5.0
func (c TxPool) EffectivePeriod() uint32
func (TxPool) Generator ¶ added in v0.5.0
func (c TxPool) Generator() func(buf []byte) checkpoint.ICheckPoint
func (*TxPool) GetTransaction ¶
func (mp *TxPool) GetTransaction(hash Uint256) *Transaction
get the transaction by hash
func (*TxPool) GetTransactionCount ¶
func (*TxPool) GetTx ¶ added in v0.5.0
func (m *TxPool) GetTx(key interface{}, slotName string) *types.Transaction
func (*TxPool) GetTxsInPool ¶ added in v0.3.0
func (mp *TxPool) GetTxsInPool() []*Transaction
GetTxsInPool returns a slice of all transactions in the mp.
This function is safe for concurrent access.
func (*TxPool) GetUsedUTXOs ¶ added in v0.5.0
GetUsedUTXO returns all used refer keys of inputs.
func (*TxPool) HaveTransaction ¶ added in v0.3.0
HaveTransaction returns if a transaction is in transaction pool by the given transaction id. If no transaction match the transaction id, return false
func (*TxPool) IsDuplicateSidechainReturnDepositTx ¶ added in v0.8.0
func (*TxPool) IsDuplicateSidechainTx ¶
func (*TxPool) MaybeAcceptTransaction ¶
func (TxPool) OnBlockSaved ¶ added in v0.5.0
func (TxPool) OnRollbackSeekTo ¶ added in v0.8.0
func (c TxPool) OnRollbackSeekTo(uint32)
func (TxPool) OnRollbackTo ¶ added in v0.5.0
func (TxPool) Priority ¶ added in v0.5.0
func (c TxPool) Priority() checkpoint.Priority
func (*TxPool) RemoveTransaction ¶
func (mp *TxPool) RemoveTransaction(txn *Transaction)
func (TxPool) SavePeriod ¶ added in v0.5.0
func (c TxPool) SavePeriod() uint32
func (TxPool) Snapshot ¶ added in v0.5.0
func (c TxPool) Snapshot() checkpoint.ICheckPoint
func (TxPool) StartHeight ¶ added in v0.5.0
func (c TxPool) StartHeight() uint32
Click to show internal directories.
Click to hide internal directories.