aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Implement raw transaction RPC callsGavin Andresen2012-07-051-0/+113
| | | | | | Implement listunspent / getrawtransaction / createrawtransaction / signrawtransaction, to support creation and signing-on-multiple-device multisignature transactions.
* Fix a couple more typosfanquake2012-06-302-2/+2
|
* Merge branch 'patch-3' of https://github.com/xanatos/bitcoinGavin Andresen2012-06-281-3/+3
|\
| * Small fix to rpc_testsxanatos2012-06-221-3/+3
| |
* | Checkpoint at block 185333 (and remove a couple of intermediate checkpoints)Gavin Andresen2012-06-251-7/+7
| |
* | Node support for Tor hidden servicesPieter Wuille2012-06-232-2/+13
| | | | | | | | | | | | This commit adds support for .onion addresses (mapped into the IPv6 by using OnionCat's range and encoding), and the ability to connect to them via a SOCKS5 proxy.
* | Unit tests for base32 encode/decodePieter Wuille2012-06-221-0/+20
|/
* = instead of == in multisig_tests.cppxanatos2012-06-211-1/+1
|
* Fix netbase testsPieter Wuille2012-06-191-1/+0
| | | | | * Do not rely on "a.b.c" being interpreted as "a.0.b.c" * Parse numeric addresses for address families for which no device is configured
* Merge pull request #1399 from sipa/ipparseGavin Andresen2012-06-181-0/+92
|\ | | | | Improve parsing of IPv6 addresses
| * Add netbase testsPieter Wuille2012-06-141-0/+92
| |
* | Merge branch 'signbugs' of https://github.com/wizeman/bitcoinGavin Andresen2012-06-181-0/+125
|\ \ | |/ |/| | | Resolved minor conflict in main.cpp
| * Move NOINLINE definition to test where it's used.Ricardo M. Correia2012-06-071-0/+16
| |
| * Use C++-style numeric limits instead of C-style.Ricardo M. Correia2012-05-311-3/+3
| |
| * Fix noinline definition so that it works for more compilers.Ricardo M. Correia2012-05-311-3/+2
| |
| * Add test case for CBigNum::setint64().Ricardo M. Correia2012-05-141-0/+110
| | | | | | | | | | | | | | One of the test cases currently aborts when using gcc's flag -ftrapv, due to negating an INT64_MIN int64 variable, which is an undefined operation. This will be fixed in a subsequent commit.
* | Fix build of testcases after commit 0f10b21719e1b0d9683a142f0a7105e65f095694Wladimir J. van der Laan2012-06-141-0/+6
| |
* | Fix coin selection to only include change when it's necessary.Chris Moore2012-06-041-38/+7
| |
* | Test that the coin selection code is suitably random, and add tests re. ↵Chris Moore2012-06-041-1/+71
| | | | | | | | sub-cent change.
* | Refactor SelectCoinsMinConf() and add unit tests.Chris Moore2012-06-041-0/+256
| | | | | | | | AvailableCoins() makes a vector of available outputs which is then passed to SelectCoinsMinConf(). This allows unit tests to test the coin selection algorithm without having the whole blockchain available.
* | Merge pull request #1357 from sipa/keyidPieter Wuille2012-05-267-46/+51
|\ \ | | | | | | Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddress
| * | Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddressPieter Wuille2012-05-247-52/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This introduces internal types: * CKeyID: reference (hash160) of a key * CScriptID: reference (hash160) of a script * CTxDestination: a boost::variant of the former two CBitcoinAddress is retrofitted to be a Base58 encoding of a CTxDestination. This allows all internal code to only use the internal types, and only have RPC and GUI depend on the base58 code. Furthermore, the header dependencies are a lot saner now. base58.h is at the top (right below rpc and gui) instead of at the bottom. For the rest: wallet -> script -> keystore -> key. Only keystore still requires a forward declaration of CScript. Solving that would require splitting script into two layers.
| * | Encapsulate public keys in CPubKeyPieter Wuille2012-05-241-7/+7
| | |
* | | Remove newlines from JSON stringsGavin Andresen2012-05-252-80/+11
| | | | | | | | | | | | | | | | | | Newlines in JSON strings are against the JSON spec, so remove them from the script*.json unit tests to make python's jsonrpc happy (json::spirit didn't care).
* | | Unit tests for transaction size limitsGavin Andresen2012-05-252-0/+100
| | |
* | | Lots more Script unit test cases.Gavin Andresen2012-05-243-8/+228
|/ /
* | More CScript unit tests.Gavin Andresen2012-05-243-6/+22
| |
* | DoS_tests: fix signed/unsigned comparison warningsJeff Garzik2012-05-241-7/+7
| | | | | | | | | | | | | | | | | | | | | | test/DoS_tests.cpp: In member function ‘void DoS_tests::DoS_mapOrphans::test_method()’: test/DoS_tests.cpp:200:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] test/DoS_tests.cpp:208:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] test/DoS_tests.cpp: In member function ‘void DoS_tests::DoS_checkSig::test_method()’: test/DoS_tests.cpp:260:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] test/DoS_tests.cpp:267:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] test/DoS_tests.cpp:280:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] test/DoS_tests.cpp:307:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
* | Merge branch 'optimize'Gavin Andresen2012-05-221-13/+122
|\ \
| * | Cache signature verificationsGavin Andresen2012-05-181-1/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | Create a maximum-10MB signature verification result cache. This should almost double the number of transactions that can be processed on a given CPU, because before this change ECDSA signatures were verified when transactions were added to the memory pool and then again when they appeared in a block.
| * | Optimize orphan transaction handlingGavin Andresen2012-05-181-2/+28
| | | | | | | | | | | | | | | Changes suggested by Sergio Demian Lerner to help prevent potential DoS attacks.
| * | Refactor: GetRandHash() method for utilGavin Andresen2012-05-171-10/+2
| | |
* | | Make testcases build, prevent windows symbol collisionWladimir J. van der Laan2012-05-201-0/+4
| | |
* | | change strings to Bitcoin (uppercase), where it is used as a noun and update ↵Philip Kaufmann2012-05-181-1/+1
| |/ |/| | | | | strings to use "Qt" (and not qt or QT) / update initialisation of notificator to use qApp->applicationName() instead of a static string
* | Clean up warningsPieter Wuille2012-05-092-3/+3
| | | | | | | | | | | | * Use -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameters * Remove xCXXFLAGS usage in makefile.unix * Fix several recent and older sign-compare warnings
* | Support for multiple local addressesPieter Wuille2012-05-041-4/+4
|/
* Define TEST_DATA_DIR so unit tests can be run from any current working directoryGavin Andresen2012-04-261-2/+6
|
* SigOp and orphan-tx constants and counts are always unsigned.Jeff Garzik2012-04-231-1/+1
| | | | Fixes several sign-comparison warnings.
* Merge pull request #1124 from sipa/rpcobj3Pieter Wuille2012-04-211-7/+2
|\ | | | | extension of #1103: encapsulate mapCommands in CRPCTable
| * Expose CRPCTable via bitcoinrpc.h for testingPieter Wuille2012-04-211-7/+2
| |
* | Merge pull request #1131 from laanwj/2012_04_hexstrPieter Wuille2012-04-211-0/+11
|\ \ | | | | | | Integrate @JoelKatz's optimized ToHex (#562) into current HexStr function
| * | Integrate @JoelKatz's optimized ToHex (#562) into current HexStr functionWladimir J. van der Laan2012-04-211-0/+11
| |/
* / Data-drive script evaluation unit tests.Gavin Andresen2012-04-213-0/+253
|/
* Fix tests after recent refactorsPieter Wuille2012-04-173-4/+5
|
* CBitcoinSecret::SetString() now calls IsValid() to make sure it was passed ↵Chris Moore2012-04-121-5/+7
| | | | something with the correct version.
* Use scoped locks instead of CRITICAL_BLOCKPieter Wuille2012-04-091-3/+4
|
* DoS fix for mapOrphanTransactionsv0.6.0rc2Gavin Andresen2012-02-291-0/+79
|
* Add mruset and use it for setInventoryKnownPieter Wuille2012-02-271-0/+90
|
* Fix tests after 38067c18Pieter Wuille2012-02-205-16/+16
|
* New GetArg features: allow --, and booleans can be -foo or -nofooGavin Andresen2012-02-071-0/+72
|