コード例 #1
0
  @Override
  public List<TransactionSummary> getTransactionHistory(int offset, int limit) {
    // Note that this method is not synchronized, and we might fetch the transaction history while
    // synchronizing
    // accounts. That should be ok as we write to the DB in a sane order.

    List<TransactionSummary> history = new ArrayList<TransactionSummary>();
    checkNotArchived();
    int blockChainHeight = getBlockChainHeight();
    List<TransactionEx> list = _backing.getTransactionHistory(offset, limit);
    for (TransactionEx tex : list) {
      TransactionSummary item = transform(tex, blockChainHeight);
      if (item != null) {
        history.add(item);
      }
    }
    return history;
  }