3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

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. */ /** Returns the protobuf that this object was instantiated with. */
public Protos.PaymentRequest getPaymentRequest() { public Protos.PaymentRequest getPaymentRequest() {
return paymentRequest; return paymentRequest;