6715efb9ca
- 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 |
||
---|---|---|
.. | ||
Makefile | ||
paymentrequestdata.h | ||
paymentservertests.cpp | ||
paymentservertests.h | ||
test_main.cpp | ||
uritests.cpp | ||
uritests.h |