mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
ForwardingService: remove null-check in forwardingCoinSelector()
This is not strictly necessary, especially in a getting started example.
This commit is contained in:
parent
c3e8b741ea
commit
490b3fe956
1 changed files with 0 additions and 1 deletions
|
@ -191,7 +191,6 @@ public class ForwardingService implements Closeable {
|
||||||
* @return a coin selector
|
* @return a coin selector
|
||||||
*/
|
*/
|
||||||
static CoinSelector forwardingCoinSelector(Sha256Hash parentTxId) {
|
static CoinSelector forwardingCoinSelector(Sha256Hash parentTxId) {
|
||||||
Objects.requireNonNull(parentTxId);
|
|
||||||
return CoinSelector.fromPredicate(output -> Objects.equals(output.getParentTransactionHash(), parentTxId));
|
return CoinSelector.fromPredicate(output -> Objects.equals(output.getParentTransactionHash(), parentTxId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue