aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2015-09-15 12:30:32 -0400
committerJeff Garzik <jgarzik@bitpay.com>2015-09-15 12:30:32 -0400
commit6f55cddf6be111d860f23f91e2bda7d88734a7c5 (patch)
treea2f20bee75806edd21ff112eb95be7f3cc8adfe9 /src/qt/test
parent3224936bedd8fe777b23d43c253abd2c0cd95d22 (diff)
parentbe942def4baac40b1031ba26491a24a55e1a6a6c (diff)
Merge pull request #5665
Diffstat (limited to 'src/qt/test')
-rw-r--r--src/qt/test/paymentservertests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/test/paymentservertests.cpp b/src/qt/test/paymentservertests.cpp
index b28934cd31..fa5696325d 100644
--- a/src/qt/test/paymentservertests.cpp
+++ b/src/qt/test/paymentservertests.cpp
@@ -185,7 +185,8 @@ void PaymentServerTests::paymentServerTests()
tempFile.open();
tempFile.write((const char*)randData, sizeof(randData));
tempFile.close();
- QCOMPARE(PaymentServer::readPaymentRequestFromFile(tempFile.fileName(), r.paymentRequest), false);
+ // compares 50001 <= BIP70_MAX_PAYMENTREQUEST_SIZE == false
+ QCOMPARE(PaymentServer::verifySize(tempFile.size()), false);
// Payment request with amount overflow (amount is set to 21000001 BTC):
data = DecodeBase64(paymentrequest5_cert2_BASE64);