From 49290a8ce0f348a02042e59db72b1e31c17daec0 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Mon, 27 Mar 2023 12:22:37 -0700 Subject: [PATCH] ForwardingService: rename `coinForwardingListener` from `coinsReceivedListener` --- .../main/java/org/bitcoinj/examples/ForwardingService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java b/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java index 6de12ebda..87f705d86 100644 --- a/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java +++ b/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java @@ -112,7 +112,7 @@ public class ForwardingService implements Closeable { public ForwardingService(File directory, Address forwardingAddress, BitcoinNetwork network) { this.forwardingAddress = forwardingAddress; this.network = network; - listener = this::coinsReceivedListener; + listener = this::coinForwardingListener; // Start up a basic app using a class that automates some boilerplate. kit = WalletAppKit.launch(network, directory, getPrefix(network), MAX_CONNECTIONS); } @@ -150,7 +150,7 @@ public class ForwardingService implements Closeable { * @param prevBalance wallet balance before this transaction (unused) * @param newBalance wallet balance after this transaction (unused) */ - private void coinsReceivedListener(Wallet wallet, Transaction incomingTx, Coin prevBalance, Coin newBalance) { + private void coinForwardingListener(Wallet wallet, Transaction incomingTx, Coin prevBalance, Coin newBalance) { // Incoming transaction received, now "compose" (i.e. chain) a call to wait for required confirmations // The transaction "incomingTx" can either be pending, or included into a block (we didn't see the broadcast). Coin value = incomingTx.getValueSentToMe(wallet);