Payment protocol: add PaymentSession.getNetworkParameters method.

This commit is contained in:
Mike Hearn 2014-04-07 14:58:55 +02:00
parent 8e61a2027f
commit af07acd1b6

View File

@ -529,6 +529,11 @@ public class PaymentSession {
}
}
/** Gets the params as read from the PaymentRequest.network field: main is the default if missing. */
public NetworkParameters getNetworkParameters() {
return params;
}
/** Returns the protobuf that this object was instantiated with. */
public Protos.PaymentRequest getPaymentRequest() {
return paymentRequest;