Load last 30 transactions from the first startBlock

pull/2/head
Michael Scoff 7 years ago
parent e2527684ff
commit a655b34c61
  1. 2
      Trust/Transactions/Coordinators/TransactionDataCoordinator.swift

@ -52,7 +52,7 @@ class TransactionDataCoordinator {
@objc func fetchTransactions() {
let startBlock: Int = {
guard let transaction = storage.objects.first, storage.objects.count <= 30 else {
guard let transaction = storage.objects.first, storage.objects.count >= 30 else {
return 1
}
return transaction.blockNumber - 2000

Loading…
Cancel
Save