mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
ForwardingService: rename one of the two forward() methods to clear up confusion
This commit is contained in:
parent
a057cd04f6
commit
68cacbebbc
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ public class ForwardingService {
|
||||||
forwardingService.start();
|
forwardingService.start();
|
||||||
|
|
||||||
// Start listening and forwarding
|
// Start listening and forwarding
|
||||||
forwardingService.forward();
|
forwardingService.waitForCoins();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -117,7 +117,7 @@ public class ForwardingService {
|
||||||
/**
|
/**
|
||||||
* Setup the listener to forward received coins and wait
|
* Setup the listener to forward received coins and wait
|
||||||
*/
|
*/
|
||||||
public void forward() {
|
public void waitForCoins() {
|
||||||
// We want to know when we receive money.
|
// We want to know when we receive money.
|
||||||
kit.wallet().addCoinsReceivedEventListener((w, tx, prevBalance, newBalance) -> {
|
kit.wallet().addCoinsReceivedEventListener((w, tx, prevBalance, newBalance) -> {
|
||||||
// Runs in the dedicated "user thread" (see bitcoinj docs for more info on this).
|
// Runs in the dedicated "user thread" (see bitcoinj docs for more info on this).
|
||||||
|
|
Loading…
Add table
Reference in a new issue