@@ -2283,10 +2283,11 @@ export default class Transaction {
getFreeOutput(addressKeyIdentifier){
returnnewPromise((resolve)=>{
constnow=Math.floor(ntp.now().getTime()/1000);
this.database.all('SELECT transaction_output.*, `transaction`.transaction_date FROM transaction_output \
INNER JOIN `transaction` ON `transaction`.transaction_id = transaction_output.transaction_id \
WHERE transaction_output.address_key_identifier=? and is_spent = 0 and transaction_output.is_stable = 1 and is_double_spend = 0 and transaction_output.status != 3',
[addressKeyIdentifier],(err,rows)=>{
WHERE transaction_output.address_key_identifier=? and is_spent = 0 and transaction_output.is_stable = 1 and is_double_spend = 0 and transaction_output.status != 3 and `transaction`.transaction_date < ?',