Replace GetTransaction by mapTransactions in name_pending.