Make PaymentChannel.ServerConnection.paymentIncrease asynchronous.

This commit is contained in:
Martin Zachrison
2014-09-23 14:43:41 +02:00
committed by Mike Hearn
parent 798c341eb1
commit 036f0bec27
8 changed files with 53 additions and 20 deletions

View File

@@ -28,6 +28,7 @@ import com.google.bitcoin.protocols.channels.*;
import com.google.bitcoin.utils.BriefLogFormatter;
import com.google.common.collect.ImmutableList;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.protobuf.ByteString;
import org.slf4j.LoggerFactory;
@@ -102,7 +103,7 @@ public class ExamplePaymentChannelServer implements PaymentChannelServerListener
}
@Override
public ByteString paymentIncrease(Coin by, Coin to, ByteString info) {
public ListenableFuture<ByteString> paymentIncrease(Coin by, Coin to, ByteString info) {
log.info("Client {} paid increased payment by {} for a total of " + to.toString(), clientAddress, by);
return null;
}