Added method getPendingTransactions() to allow recovering pending
transactions