Examples of PaymentChannelCloseException


Examples of com.google.bitcoin.protocols.channels.PaymentChannelCloseException

                    log.warn("{}: Payment channel terminating with reason {}", socket, reason);
                    if (reason == PaymentChannelCloseException.CloseReason.SERVER_REQUESTED_TOO_MUCH_VALUE) {
                        future.completeExceptionally(new InsufficientMoneyException(paymentChannelClient.getMissing()));
                    } else {
                        if (currentFuture != null)
                            currentFuture.completeExceptionally(new PaymentChannelCloseException("Unexpected payment channel termination", reason));
                    }
                } else {
                    checkState(settling);
                    log.info("{}: Payment channel settled successfully.", socket);
                    settlementFuture.complete(null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.