|
|
@ -88,13 +88,12 @@ public: |
|
|
|
// OptionsModel is used for getting proxy settings and display unit
|
|
|
|
// OptionsModel is used for getting proxy settings and display unit
|
|
|
|
void setOptionsModel(OptionsModel *optionsModel); |
|
|
|
void setOptionsModel(OptionsModel *optionsModel); |
|
|
|
|
|
|
|
|
|
|
|
// This is now public, because we use it in paymentservertests.cpp
|
|
|
|
|
|
|
|
static bool readPaymentRequestFromFile(const QString& filename, PaymentRequestPlus& request); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Verify that the payment request network matches the client network
|
|
|
|
// Verify that the payment request network matches the client network
|
|
|
|
static bool verifyNetwork(const payments::PaymentDetails& requestDetails); |
|
|
|
static bool verifyNetwork(const payments::PaymentDetails& requestDetails); |
|
|
|
// Verify if the payment request is expired
|
|
|
|
// Verify if the payment request is expired
|
|
|
|
static bool verifyExpired(const payments::PaymentDetails& requestDetails); |
|
|
|
static bool verifyExpired(const payments::PaymentDetails& requestDetails); |
|
|
|
|
|
|
|
// Verify the payment request size is valid as per BIP70
|
|
|
|
|
|
|
|
static bool verifySize(qint64 requestSize); |
|
|
|
// Verify the payment request amount is valid
|
|
|
|
// Verify the payment request amount is valid
|
|
|
|
static bool verifyAmount(const CAmount& requestAmount); |
|
|
|
static bool verifyAmount(const CAmount& requestAmount); |
|
|
|
|
|
|
|
|
|
|
@ -131,6 +130,7 @@ protected: |
|
|
|
bool eventFilter(QObject *object, QEvent *event); |
|
|
|
bool eventFilter(QObject *object, QEvent *event); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
static bool readPaymentRequestFromFile(const QString& filename, PaymentRequestPlus& request); |
|
|
|
bool processPaymentRequest(const PaymentRequestPlus& request, SendCoinsRecipient& recipient); |
|
|
|
bool processPaymentRequest(const PaymentRequestPlus& request, SendCoinsRecipient& recipient); |
|
|
|
void fetchRequest(const QUrl& url); |
|
|
|
void fetchRequest(const QUrl& url); |
|
|
|
|
|
|
|
|
|
|
|