aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test
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-11/+11
|
* Fix the hash of the best block to reflect the Dogecoin blockPatrick Lodder2020-07-221-1/+1
| | | | This was prev tested to be a Bitcoin block in qt rpc tests
* qt-tests: Disable payment server test that moves 21M+1 coins.Patrick Lodder2020-07-221-0/+3
| | | | | | This is not a testcase for Dogecoin. Like the other payment server tests, this could be amended, or it can be depreciated, depending on where we take payment protocol.
* Update URI tests for Dogecoin (#1457)Ross Nicoll2019-03-251-18/+18
| | | | | Note that the test address was invalid in Bitcoin Core, and as such rather than re-encoding as a Dogecoin address, I've simply swapped the first byte. Still invalid, but looks correct at least.
* Update payment protocol to match Dogecoin (#1433)Ross Nicoll2018-09-191-2/+4
| | | | | | * 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.
* trivial: squash missing field 'argNames' initializer warning in qt testsWladimir J. van der Laan2017-01-201-1/+1
| | | | | | The additional initializer is for the named arguments, which are unused in the test (and unfilled global fields will be initialized to 0 anyhow), so this is a no-op apart from the warning.
* Merge #9450: Increment MIT licence copyright header year on files modified ↵Wladimir J. van der Laan2017-01-041-1/+1
|\ | | | | | | | | | | in 2016 27765b6 Increment MIT Licence copyright header year on files modified in 2016 (isle2983)
| * Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | | | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* | Qt/Test: Make sure filtering sensitive data works correctly in nested commandsLuke Dashjr2016-12-291-2/+26
|/
* Add a ForceSetArg method for testingMatt Corallo2016-12-271-3/+1
|
* Un-expose mapArgs from utils.hMatt Corallo2016-12-241-0/+2
|
* Merge #9329: [Qt] Console: allow empty argumentsWladimir J. van der Laan2016-12-191-10/+49
|\ | | | | | | | | | | 390bd14 [Qt] Console: don't allow empty arguments when using the comma-syntax (Jonas Schnelli) 6a32c0f Qt/Test: Check handling of empty arguments in RPC debug console (Luke Dashjr) 89c8d2c [Qt] Console: allow empty arguments (Jonas Schnelli)
| * [Qt] Console: don't allow empty arguments when using the comma-syntaxJonas Schnelli2016-12-141-12/+20
| |
| * Qt/Test: Check handling of empty arguments in RPC debug consoleLuke Dashjr2016-12-131-0/+31
| |
* | Uses built-in byte swap if available (Apple) and if bswap_XX is undefined.Karl-Johan Alm2016-12-173-0/+46
|/ | | | Defers to pre-defined version if found (e.g. protobuf). For protobuf case, the definitions are identical and thus include order should not affect results.
* Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-1/+1
|
* [Qt] RPC-Console: support nested commands and simple value queriesJonas Schnelli2016-08-233-1/+133
| | | | | | | | | | | | | | | | Commands can be executed with bracket syntax, example: `getwalletinfo()`. Commands can be nested, example: `sendtoaddress(getnewaddress(), 10)`. Simple queries are possible: `listunspent()[0][txid]` Object values are accessed with a non-quoted string, example: [txid]. Fully backward compatible. `generate 101` is identical to `generate(101)` Result value queries indicated with `[]` require the new brackets syntax. Comma as argument separator is now also possible: `sendtoaddress,<address>,<amount>` Space as argument separator works also with the bracket syntax, example: `sendtoaddress(getnewaddress() 10) No dept limitation, complex commands are possible: `decoderawtransaction(getrawtransaction(getblock(getbestblockhash())[tx][0]))[vout][0][value]`
* Bump copyright headers to 2015MarcoFalke2015-12-135-5/+5
|
* Merge pull request #5665Jeff Garzik2015-09-151-1/+2
|\
| * [Qt] add verifySize() function to PaymentServerPhilip Kaufmann2015-08-101-1/+2
| | | | | | | | | | | | | | - 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
* | tests: fix qt payment testCory Fields2015-09-021-0/+4
|/ | | | | Now that boost no longer automatically initializes openssl, we have to do it ourselves.
* qt: define QT_NO_KEYWORDSWladimir J. van der Laan2015-07-153-4/+4
| | | | | | | | 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.
* Initialization: setup environment before starting QT testsdexX72015-03-291-0/+2
| | | | The environment is prepared by the main thread to guard against invalid locale settings.
* [Qt] prevent amount overflow problem with payment requestsPhilip Kaufmann2015-02-042-0/+42
| | | | | | | | | | | | | | | | 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-152-2/+104
| | | | | | | | | | | | | | | - 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-142-0/+52
| | | | | | - 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-132-23/+57
| | | | | | | | | | - 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-196-6/+6
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* [Qt] add BIP70 DoS protection testPhilip Kaufmann2014-12-081-0/+12
| | | | | - this test required to make readPaymentRequestFromFile() public in order to be able to is it in paymentservertests.cpp
* Fix all header definesPavel Janík2014-11-032-6/+6
|
* script: add a slew of includes all around and drop includes from script.hCory Fields2014-10-171-0/+1
| | | | Lots of files ended up with indirect includes from script.h.
* [Qt] copyright, style and indentation cleanup of Qt testsPhilip Kaufmann2014-09-056-6/+30
|
* Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan2014-06-251-0/+1
| | | | | | | | | This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.
* build: fix build weirdness after 54372482.Cory Fields2014-06-231-1/+1
| | | | | | | | | | | | | bitcoin-config.h moved, but the old file is likely to still exist when reconfiguring or switching branches. This would've caused files to not rebuild correctly, and other strange problems. Make the path explicit so that the old one cannot be found. Core libs use config/bitcoin-config.h. Libs (like crypto) which don't want access to bitcoin's headers continue to use -Iconfig and #include bitcoin-config.h.
* build: add stub makefiles for easier subdir buildsCory Fields2014-06-051-0/+6
|
* build: delete old Makefile.am'sCory Fields2014-06-051-46/+0
|
* Update test_main.cppLongShao0072014-05-221-1/+0
| | | i think should delete (#include "bitcoin-config.h")。
* build: use -mwindows for gui targets when linking with mingwCory Fields2014-01-271-0/+1
|
* [Qt] fix alphabetical ordering in Makefile.amPhilip Kaufmann2014-01-121-3/+5
| | | | - also change to 1 file per line for more stuff in Makefile.am
* makefile.am: split long lines into one file per lineWladimir J. van der Laan2014-01-111-3/+10
| | | | | This makes it easier to read diffs. Cosmetic change to build system only.
* GUI for --disable-wallet compiles and -disablewallet modeWladimir J. van der Laan2014-01-112-4/+22
| | | | | | | | There is not much in the GUI to be done without wallet, though it's possible to change options, watch the sync process, and use the debug console. So embed the debug console in the main window.
* qt5: tests: Make sure static plugin symbols are pulled inCory Fields2014-01-101-0/+9
| | | | | | | | Since we're now properly linking against static plugins for qt binaries, we need to ensure that they're Imported properly. Without these Imports, the linker drops some of the unused linked libs, causing undefined symbols in QtCore.
* qt5: Ensure correct link orderCory Fields2014-01-101-1/+1
| | | | | If optional libs don't appear in QT_LIBS, they need to be listed first for proper static linking.
* Merge pull request #3332Wladimir J. van der Laan2013-12-081-1/+1
|\ | | | | | | | | | | | | | | | | | | | | 5094f8d Split off rpc_wallet_tests (Wladimir J. van der Laan) 829c920 Move CCryptoKeyStore to crypter.cpp (Wladimir J. van der Laan) ae6ea5a Update build-unix.md to mention --disable-wallet (Wladimir J. van der Laan) 4f9e993 Add --disable-wallet option to build system (Wladimir J. van der Laan) d004d72 Move CAddrDB frrom db to net (Wladimir J. van der Laan) 48ba56c Delimit code with #ifdef ENABLE_WALLET (Wladimir J. van der Laan) 991685d Move getinfo to rpcnet.cpp (Wladimir J. van der Laan) bbb0936 Move HelpExample* from rpcwallet to rpcserver (Wladimir J. van der Laan)
| * Add --disable-wallet option to build systemWladimir J. van der Laan2013-12-041-1/+1
| | | | | | | | | | Make it possible to build Bitcoin without wallet (and thus without BDB) so that it only functions as node.
* | [Qt] misc PaymentServer changes (e.g. changes to eventFilter())Philip Kaufmann2013-12-063-8/+16
|/ | | | | | | | | | | | - make eventFilter() private and pass events on to QObject::eventFilter() instead of just returning false - re-work paymentservertest.cpp to correctly handle the event test after the above change (rewrite test_main to allow usage of QCoreApplication:: in the tests) - delete socket when we were unable to connect in ipcSendCommandLine() - show a message to the user if we fail to start-up (instead of just a debug.log entry) - misc small comment changes
* bitcoin-cli: remove unneeded dependencies (only code movement)Wladimir J. van der Laan2013-12-031-1/+1
| | | | | | | | | | | | | | Remove unnecessary dependencies for bitcoin-cli (leveldb, berkelydb, wallet, RPC server) Build system changes: - split libbitcoin.a into libbitcoin_common.a, libbitcoin_server.a and libbitcoin_cli.a Code changes (movement only): - split up HelpMessage into HelpMessage in init.cpp and HelpMessageCli in rpcclient.cpp - move uiInterface from init.cpp to util.cpp
* Merge pull request #3187 from Diapolo/netManagerWladimir J. van der Laan2013-11-111-1/+0
|\ | | | | [Qt] paymentserver: start netManager in uiReady()
| * [Qt] paymentserver: start netManager in uiReady()Philip Kaufmann2013-11-111-1/+0
| | | | | | | | | | | | | | | | | | | | - remove explicit init of netManager as this is done in the constructor anyway - move initNetManager() call to uiReady(), which removes an assert() and allows us to use message() in initNetManager() (currently unused but could be necessary because of proxy related messages) - make initNetManager() private - update paymentservertests.cpp