use all the past transactions, not only the unspent