Documentation ¶
Index ¶
- type MemPool
- func (m *MemPool) AddTx(tx *protobuf.Tx, accSrv account.ServiceI) (int, int)
- func (m *MemPool) DeleteTx(id string) bool
- func (m *MemPool) GetTx(id string) (int, *protobuf.Tx, error)
- func (m *MemPool) GetTxs() *tx.Txs
- func (m *MemPool) RemoveTxs(i int)
- func (m *MemPool) UpdateTx(origI int, updated *protobuf.Tx) (*protobuf.Tx, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemPool ¶
type MemPool struct {
// contains filtered or unexported fields
}
MemPool ...
func (*MemPool) AddTx ¶
AddTx adds the tx Transaction to the MemPool and returns the total number of current Transactions within the MemPool
func (*MemPool) DeleteTx ¶
DeleteTx deletes a transaction currently in the MemPool by the transaction ID Returns true if successfully cancelled, false if can't find or cancel the transaction
func (*MemPool) GetTx ¶
GetTx returns a Tx for the given ID or nil if the corresponding TX exists Returns empty if Tx not found
Click to show internal directories.
Click to hide internal directories.