code: func (pool *TxPool) local() map[common.Address]types.Transactions {
  	txs := make(map[common.Address]types.Transactions)
  	for addr := range pool.locals.accounts {
  		if pending := pool.pending[addr]; pending != nil {
  			txs[addr] = append(txs[addr], pending.Flatten()...)
  		}
  		if queued := pool.queue[addr]; queued != nil {
  			txs[addr] = append(txs[addr], queued.Flatten()...)
  		}
  	}
  	return txs
  }
docs: // local retrieves all currently known local transactions, grouped by origin
  // account and sorted by nonce. The returned transaction set is a copy and can be
  // freely modified by calling code.