diff --git a/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java b/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java index 8b2385ba..942dd36c 100644 --- a/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java +++ b/examples/src/main/java/org/bitcoinj/examples/ForwardingService.java @@ -136,12 +136,9 @@ public class ForwardingService { System.out.println("Sent coins onwards! Transaction hash is " + sendResult.tx.getHashAsString()); } }, MoreExecutors.sameThreadExecutor()); - } catch (KeyCrypterException e) { + } catch (KeyCrypterException | InsufficientMoneyException e) { // We don't use encrypted wallets in this example - can never happen. throw new RuntimeException(e); - } catch (InsufficientMoneyException e) { - // This should never happen - we're only trying to forward what we received! - throw new RuntimeException(e); } } }