aboutsummaryrefslogtreecommitdiff
path: root/src/qt/paymentserver.cpp
Commit message (Collapse)AuthorAgeFilesLines
* really s/Doge/Dis/g this timeTomo Ueda2021-09-021-2/+2
|
* really s/doge/dis/g this timeTomo Ueda2021-09-021-2/+2
|
* Change IPC prefix from bitcoin: to dogecoin:Dennis Field2020-02-271-1/+1
| | | | | | | | | | | | | | Given that GUIUtil::parseBitcoinURI is expecting it to start with dogecoin, it seems like this was overlooked, and this results in dogecoin: links not being processed as expected in handleURIOrFile, ipcParseCommandLine. Instead of processing the link as a payment request and opening the such send page, it simply opens the core wallet (or attempts to open another). This commit makes dogecoin-qt properly handle dogecoin links so that the such send page is opened with the desired information obtained from the link. Fixes #1628
* Update QT client messages and translations to Doge equivalents (#1429)Ross Nicoll2019-03-251-3/+3
| | | | Update QT client messages and translations to Doge equivalents.
* Update payment protocol to match Dogecoin (#1433)Ross Nicoll2018-09-191-5/+6
| | | | | | * Revised payment request handling to use genesis block hash instead of network name, enabling support for more networks that just Bitcoin main and test net. * Disable payment protocol certificate unit tests; we don't modify this code, and regenerating the test data is likely to be significantly time consuming. Will re-enable once discussion on spec is concluded.
* Move BIP70_MAX_PAYMENTREQUEST_SIZE to headerPieter Wuille2017-02-171-2/+0
| | | | | Github-Pull: #9785 Rebased-From: c801c82e253dc4956069b6110f65b43f538dd5a1
* Introduce -dustrelayfeeAlex Morcos2017-01-161-2/+2
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-1/+1
|
* qt: Avoid OpenSSL certstore-related memory leakWladimir J. van der Laan2016-11-231-19/+24
| | | | - Correctly manage the X509 and X509_STORE objects lifetime.
* qt: Use correct conversion function for boost::path datadirWladimir J. van der Laan2016-11-071-1/+1
| | | | Fixes #9089.
* Do not shadow in src/qtPavel Janík2016-09-231-2/+2
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Merge pull request #5665Jeff Garzik2015-09-151-14/+20
|\
| * [Qt] add verifySize() function to PaymentServerPhilip Kaufmann2015-08-101-14/+20
| | | | | | | | | | | | | | - add static verifySize() function to PaymentServer and move the logging on error into the function - also use the new function in the unit test - the function checks if the size is allowed as per BIP70
* | typofixes (found by misspell_fixer)Veres Lajos2015-08-101-1/+1
|/
* Includes: Cleanup around net main and walletJorge Timón2015-07-231-1/+1
| | | | | | -Move from .h to .cpp: in main, net and wallet -Remove unnecessary #include "main.h" -Cleanup some wallet files includes
* [Qt] remove std namespace polution from codePhilip Kaufmann2015-07-161-3/+1
|
* qt: define QT_NO_KEYWORDSWladimir J. van der Laan2015-07-151-29/+29
| | | | | | | | QT_NO_KEYWORDS prevents Qt from defining the `foreach`, `signals`, `slots` and `emit` macros. Avoid overlap between Qt macros and boost - for example #undef hackiness in #6421.
* [Qt] minor comment updates in PaymentServerPhilip Kaufmann2015-04-151-9/+8
|
* [Qt] constify first parameter of processPaymentRequest()Philip Kaufmann2015-04-151-1/+1
|
* [Qt] paymentserver: better logging of invalid certsPhilip Kaufmann2015-04-151-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before and after was tested in Windows: before: GUI: ReportInvalidCertificate : Payment server found an invalid certificate: ("Microsoft Authenticode(tm) Root Authority") GUI: ReportInvalidCertificate : Payment server found an invalid certificate: () GUI: ReportInvalidCertificate : Payment server found an invalid certificate: () GUI: ReportInvalidCertificate : Payment server found an invalid certificate: () after: GUI: ReportInvalidCertificate: Payment server found an invalid certificate: "01" ("Microsoft Authenticode(tm) Root Authority") () () GUI: ReportInvalidCertificate: Payment server found an invalid certificate: "01" () () ("Copyright (c) 1997 Microsoft Corp.", "Microsoft Time Stamping Service Root", "Microsoft Corporation") GUI: ReportInvalidCertificate: Payment server found an invalid certificate: "4a:19:d2:38:8c:82:59:1c:a5:5d:73:5f:15:5d:dc:a3" () () ("NO LIABILITY ACCEPTED, (c)97 VeriSign, Inc.", "VeriSign Time Stamping Service Root", "VeriSign, Inc.") GUI: ReportInvalidCertificate: Payment server found an invalid certificate: "e4:9e:fd:f3:3a:e8:0e:cf:a5:11:3e:19:a4:24:02:32" () () ("Class 3 Public Primary Certification Authority")
* [Qt] paymentserver: do not log NULL certificatesPhilip Kaufmann2015-04-151-2/+9
| | | | - also add a few more comments in PaymentServer::LoadRootCAs
* Includes: Do not include main.h from any other headerJorge Timón2015-03-241-0/+1
|
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-1/+1
| | | | could once be renamed from /src/wallet to /src/legacywallet.
* openssl: abstract out OPENSSL_cleanseCory Fields2015-02-151-1/+0
| | | | | | This makes it easier for us to replace it if desired, since it's now only in one spot. Also, it avoids the openssl include from allocators.h, which essentially forced openssl to be included from every compilation unit.
* [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
* Remove whitespaces before double colon in errors and logsPavel Janík2015-01-311-14/+14
|
* Merge pull request #5620Wladimir J. van der Laan2015-01-291-8/+17
|\ | | | | | | 6715efb [Qt] Payment request expiration bug fix (re-done) (Philip Kaufmann)
| * [Qt] Payment request expiration bug fix (re-done)Philip Kaufmann2015-01-151-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 debug logging for -rootcertificates optionPhilip Kaufmann2015-01-151-7/+10
|/ | | | | | | - now logs if -rootcertificates="" was used to disable payment request authentication via X.509 certificates - also logs which file is used as trusted root cert, if -rootcertificates is set
* [Qt] add payment request unit test for non matching networksPhilip Kaufmann2015-01-141-2/+13
| | | | | | - 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
* namespace: remove boost namespace pollutionCory Fields2015-01-021-1/+0
|
* [Qt] update a translation string and argument countsPhilip Kaufmann2014-12-311-2/+1
|
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* [Qt] update paymentserver license and cleanup orderingPhilip Kaufmann2014-12-081-3/+3
|
* [Qt] add BIP70 payment request size DoS protection for URIsPhilip Kaufmann2014-12-081-12/+32
| | | | | | | | - current code only does this for payment request files, which are used on Mac - also rename readPaymentRequest to readPaymentRequestFromFile, so it's obvious that function only handles payment request files and not URIs - small logging changes in readPaymentRequestFromFile
* [Qt] remove dup lock that is done in SetAddressBook()Philip Kaufmann2014-12-081-1/+0
|
* [Qt] ensure socket is set to NULL in PaymentServer::ipcSendCommandLinePhilip Kaufmann2014-12-081-1/+4
|
* [Qt] add BIP70/BIP71 constants for all messages and mime typesPhilip Kaufmann2014-12-081-12/+18
| | | | | - also rename current ones to match the new ones - remove constant from guiconstant.h and add it to paymentserver.cpp
* [Qt] make PaymentServer::ipcParseCommandLine voidPhilip Kaufmann2014-12-081-2/+5
| | | | | - the function only returned true, so make it void - add a comment about payment request network detection
* Use a typedef for monetary valuesMark Friedenbach2014-09-261-2/+2
|
* Move CTxDestination from script/script to script/standardPieter Wuille2014-09-161-2/+2
|
* Merge pull request #4623Wladimir J. van der Laan2014-09-101-2/+6
|\ | | | | | | e84843c Broken addresses on command line no longer trigger testnet. (Ross Nicoll)
| * Broken addresses on command line no longer trigger testnet.Ross Nicoll2014-08-301-2/+6
| | | | | | | | | | When passing a bitcoin: URI on the command line, invalid addresses do not incorrectly send the user to the test network.
* | Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+1
|/ | | | | | | | | | | | | | | | Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
* qt: Demote ReportInvalidCertificate message to qDebugWladimir J. van der Laan2014-08-041-1/+1
| | | | Too spammy.
* qt: Update some messages after suggestions by translatorsWladimir J. van der Laan2014-07-311-3/+3
| | | | | - *cannot* is more common, thus preferred to *can not* - Use *Watch-only* instead of *Watchonly* as one word
* Payment request parsing on startup now only changes network if a valid ↵Ross Nicoll2014-07-081-1/+5
| | | | network name is specified.
* remove SOCKS4 support from core and GUIPhilip Kaufmann2014-07-071-10/+4
| | | | - now we support SOCKS5 only