// Content retrieves the data content of the transaction pool, returning all the
// pending as well as queued transactions, grouped by account and sorted by nonce.
Content retrieves the data content of the transaction pool, returning all the
pending as well as queued transactions, grouped by account and sorted by nonce.
// Content retrieves the data content of the transaction pool returning all the // pending as well as queued transactions grouped by account and sorted by nonce .
func (nPool *NormalTxPool) Content() map[common.Address][]*types.Transaction {
	nPool.mu.Lock()
	defer nPool.mu.Unlock()
	pending := make(map[common.Address][]*types.Transaction)
	for addr, list := range nPool.pending {
		txlist := make([]*types.Transaction, 0)
		for _, txs := range list.txs {
			txlist = append(txlist, txs.Flatten()...)
		}
		pending[addr] = txlist
	}
	return pending
}
func ( nPool * NormalTxPool ) Content ( ) map [ common . Address ] [ ] * types . Transaction { nPool . mu . Lock ( ) defer nPool . mu . Unlock ( ) pending := make ( map [ common . Address ] [ ] * types . Transaction ) for addr , list := range nPool . pending { txlist := make ( [ ] * types . Transaction , 0 ) for _ , txs := range list . txs { txlist = append ( txlist , txs . Flatten ( ) ... ) } pending [ addr ] = txlist } return pending }
Content retrieves the data content of the transaction pool, returning all the
pending as well as queued transactions, grouped by account and sorted by nonce.
Content retrieves the data content of the transaction pool returning all the pending as well as queued transactions grouped by account and sorted by nonce .