mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-19 05:33:44 +01: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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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