neobytes/src/qt/test
Philip Kaufmann a6516686dc [Qt] prevent amount overflow problem with payment requests
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
2015-02-04 13:47:32 +01:00
..
Makefile
paymentrequestdata.h [Qt] prevent amount overflow problem with payment requests 2015-02-04 13:47:32 +01:00
paymentservertests.cpp [Qt] prevent amount overflow problem with payment requests 2015-02-04 13:47:32 +01:00
paymentservertests.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
test_main.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
uritests.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
uritests.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00