Update QortalATAPI.putTransactionAfterTimestampIntoA() to use Transaction.getRecipientAddresses

This commit is contained in:
catbref 2020-05-01 10:20:25 +01:00
parent 6be88ac86e
commit e1f3b9a7a3
2 changed files with 1 additions and 13 deletions

View File

@ -3,7 +3,6 @@ package org.qortal.at;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@ -179,8 +178,7 @@ public class QortalATAPI extends API {
Transaction transaction = blockTransactions.get(sequence);
// Transaction needs to be sent to specified recipient
List<Account> recipientAccounts = transaction.getRecipientAccounts();
List<String> recipientAddresses = recipientAccounts.stream().map(Account::getAddress).collect(Collectors.toList());
List<String> recipientAddresses = transaction.getRecipientAddresses();
if (recipientAddresses.contains(atAddress)) {
// Found a transaction

View File

@ -395,16 +395,6 @@ public abstract class Transaction {
return blockChainHeight - ourHeight + 1;
}
/**
* Returns a list of recipient accounts for this transaction.
*
* @return list of recipients accounts, or empty list if none
* @throws DataException
*/
public List<Account> getRecipientAccounts() throws DataException {
throw new DataException("Placeholder for new AT code");
}
/**
* Returns a list of recipient addresses for this transaction.
*