mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-03 14:07:14 +00:00
Make PaymentChannel.ServerConnection.paymentIncrease asynchronous.
This commit is contained in:
committed by
Mike Hearn
parent
798c341eb1
commit
036f0bec27
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user