// Status returns the status (unknown/pending/queued) of a batch of transactions
// identified by their hashes.
Status returns the status (unknown/pending/queued) of a batch of transactions
identified by their hashes.
// Status returns the status ( unknown / pending / queued ) of a batch of transactions // identified by their hashes .
func (nPool *NormalTxPool) Status(hashes []common.Hash) []TxStatus {
	nPool.mu.RLock()
	defer nPool.mu.RUnlock()
	status := make([]TxStatus, len(hashes))
	for i, hash := range hashes {
		if tx := nPool.all.Get(hash); tx != nil {
			from, _ := nPool.checkTxFrom(tx)
			if nPool.pending[from] != nil && nPool.pending[from].txs[tx.GetTxCurrency()].items[tx.Nonce()] != nil {
				status[i] = TxStatusPending
			} else {
				status[i] = TxStatusQueued
			}
		}
	}
	return status
}
func ( nPool * NormalTxPool ) Status ( hashes [ ] common . Hash ) [ ] TxStatus { nPool . mu . RLock ( ) defer nPool . mu . RUnlock ( ) status := make ( [ ] TxStatus , len ( hashes ) ) for i , hash := range hashes { if tx := nPool . all . Get ( hash ) ; tx != nil { from , _ := nPool . checkTxFrom ( tx ) if nPool . pending [ from ] != nil && nPool . pending [ from ] . txs [ tx . GetTxCurrency ( ) ] . items [ tx . Nonce ( ) ] != nil { status [ i ] = TxStatusPending } else { status [ i ] = TxStatusQueued } } } return status }
Status returns the status (unknown/pending/queued) of a batch of transactions
identified by their hashes.
Status returns the status ( unknown / pending / queued ) of a batch of transactions identified by their hashes .
// 如果交易中已经有了from就不需要在做解签