mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-30 23:02:15 +00:00
Add a setter for the coin selector.
This commit is contained in:
parent
4273820eac
commit
068db43569
@ -2407,4 +2407,13 @@ public class Wallet implements Serializable, BlockChainListener {
|
|||||||
}
|
}
|
||||||
return filter;
|
return filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A coin selector is responsible for choosing which outputs to spend when creating transactions. The default
|
||||||
|
* selector implements a policy of spending transactions that appeared in the best chain and pending transactions
|
||||||
|
* that were created by this wallet, but not others.
|
||||||
|
*/
|
||||||
|
public synchronized void setCoinSelector(CoinSelector coinSelector) {
|
||||||
|
this.coinSelector = coinSelector;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user