mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 03:21:23 +00:00
Delete an unused method.
This commit is contained in:
@@ -173,17 +173,6 @@ public class Wallet implements Serializable {
|
||||
eventListeners = new ArrayList<WalletEventListener>();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the given transaction is present in the wallet, comparing by hash value (not by object
|
||||
* reference). So you can create a transaction object from scratch and get true from this method if the
|
||||
* transaction is logically equal.
|
||||
*/
|
||||
public synchronized boolean isTransactionPresent(Transaction transaction) {
|
||||
// TODO: Redefine or delete this method.
|
||||
Sha256Hash hash = transaction.getHash();
|
||||
return unspent.containsKey(hash) || spent.containsKey(hash);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called by the {@link BlockChain} when we receive a new block that sends coins to one of our addresses or
|
||||
* spends coins from one of our addresses (note that a single transaction can do both).<p>
|
||||
|
Reference in New Issue
Block a user