docs: update mempool Select godoc (#15486)
This commit is contained in:
parent
66ce346fea
commit
0d20a1456d
@ -337,6 +337,9 @@ func (i *PriorityNonceIterator[C]) Tx() sdk.Tx {
|
||||
//
|
||||
// The maxBytes parameter defines the maximum number of bytes of transactions to
|
||||
// return.
|
||||
//
|
||||
// NOTE: It is not safe to use this iterator while removing transactions from
|
||||
// the underlying mempool.
|
||||
func (mp *PriorityNonceMempool[C]) Select(_ context.Context, _ [][]byte) Iterator {
|
||||
if mp.priorityIndex.Len() == 0 {
|
||||
return nil
|
||||
|
||||
@ -151,6 +151,9 @@ func (snm *SenderNonceMempool) Insert(_ context.Context, tx sdk.Tx) error {
|
||||
|
||||
// Select returns an iterator ordering transactions the mempool with the lowest
|
||||
// nonce of a random selected sender first.
|
||||
//
|
||||
// NOTE: It is not safe to use this iterator while removing transactions from
|
||||
// the underlying mempool.
|
||||
func (snm *SenderNonceMempool) Select(_ context.Context, _ [][]byte) Iterator {
|
||||
var senders []string
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user