aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test/paymentrequestdata.h
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* [Qt] prevent amount overflow problem with payment requestsPhilip Kaufmann2015-02-041-0/+25
| | | | | | | | | | | | | | | | Bitcoin amounts are stored as uint64 in the protobuf messages (see paymentrequest.proto), but CAmount is defined as int64_t. Because of that we need to verify that single and accumulated amounts are in a valid range and no variable overflow has happened. - fixes #5624 (#5622) Thanks @SergioDemianLerner for reporting that issue and also supplying us with a possible solution. - add static verifyAmount() function to PaymentServer and move the logging on error into the function - also add a unit test to paymentservertests.cpp
* [Qt] Payment request expiration bug fix (re-done)Philip Kaufmann2015-01-151-0/+72
| | | | | | | | | | | | | | | - this is based on #4122 (which can be closed) Currently a payment request is only checked for expiration upon receipt. It should be checked again immediately before sending coins to prevent the user from paying to an expired invoice which would then require a customer service interaction. - add static verifyExpired() function to PaymentServer to be able to use the same validation code in GUI and unit-testing code - extend unit tests to use that function and also add an unit test which overflows, because payment requests allow expires as uint64, whereas we use int64_t for verification of expired payment requests
* [Qt] add payment request unit test for non matching networksPhilip Kaufmann2015-01-141-0/+24
| | | | | | - 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
* [Qt] prepare paymentservertests for new unit testsPhilip Kaufmann2015-01-131-12/+40
| | | | | | | | | | - add a second PaymentRequest Test CA certificate to paymentrequestdata.h (serial number f0:da:97:e4:38:d7:64:16) as caCert2_BASE64 - rename existing Test CA certificate to caCert1_BASE64 - rename existing payment request data to know they belong to caCert1_BASE64 - update comments to reflect the changes and add a missing comment to one of the payment requests
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* [Qt] copyright, style and indentation cleanup of Qt testsPhilip Kaufmann2014-09-051-0/+4
|
* Payment Protocol: X509-validated payment requestsGavin Andresen2013-08-221-0/+307
Add support for a Payment Protocol to Bitcoin-Qt. Payment messages are protocol-buffer encoded and communicated over http(s), so this adds a dependency on the Google protocol buffer library, and requires Qt with OpenSSL support.