diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-01-12 08:43:08 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-01-14 13:15:26 +0100 |
commit | 17005bc0fcc1e1b5e3d17e58080af952202723af (patch) | |
tree | 6c5a4ebf42b8e5112d0e4ebdb27067b3c9da8d21 /src/qt/paymentserver.h | |
parent | 080da96c7c2c89bdf96ba4c0058f6ebba102610f (diff) |
[Qt] add payment request unit test for non matching networks
- verify that payment request network matches client network
- add static verifyNetwork() function to PaymentServer to be able to use
the same validation code in GUI and unit-testing code
Diffstat (limited to 'src/qt/paymentserver.h')
-rw-r--r-- | src/qt/paymentserver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/paymentserver.h b/src/qt/paymentserver.h index 2fc24395f6..9330e9a89c 100644 --- a/src/qt/paymentserver.h +++ b/src/qt/paymentserver.h @@ -91,6 +91,9 @@ public: // 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 + static bool verifyNetwork(const payments::PaymentDetails& requestDetails); + signals: // Fired when a valid payment request is received void receivedPaymentRequest(SendCoinsRecipient); |