aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2012-07-05Implement raw transaction RPC callsGavin Andresen
Implement listunspent / getrawtransaction / createrawtransaction / signrawtransaction, to support creation and signing-on-multiple-device multisignature transactions.
2012-06-30Fix a couple more typosfanquake
2012-06-28Merge branch 'patch-3' of https://github.com/xanatos/bitcoinGavin Andresen
2012-06-25Checkpoint at block 185333 (and remove a couple of intermediate checkpoints)Gavin Andresen
2012-06-23Node support for Tor hidden servicesPieter Wuille
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.
2012-06-22Unit tests for base32 encode/decodePieter Wuille
2012-06-22Small fix to rpc_testsxanatos
2012-06-21= instead of == in multisig_tests.cppxanatos
2012-06-19Fix netbase testsPieter Wuille
* 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
2012-06-18Merge pull request #1399 from sipa/ipparseGavin Andresen
Improve parsing of IPv6 addresses
2012-06-18Merge branch 'signbugs' of https://github.com/wizeman/bitcoinGavin Andresen
Resolved minor conflict in main.cpp
2012-06-14Add netbase testsPieter Wuille
2012-06-14Fix build of testcases after commit 0f10b21719e1b0d9683a142f0a7105e65f095694Wladimir J. van der Laan
2012-06-07Move NOINLINE definition to test where it's used.Ricardo M. Correia
2012-06-04Fix coin selection to only include change when it's necessary.Chris Moore
2012-06-04Test that the coin selection code is suitably random, and add tests re. ↵Chris Moore
sub-cent change.
2012-06-04Refactor SelectCoinsMinConf() and add unit tests.Chris Moore
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.
2012-05-31Use C++-style numeric limits instead of C-style.Ricardo M. Correia
2012-05-31Fix noinline definition so that it works for more compilers.Ricardo M. Correia
2012-05-26Merge pull request #1357 from sipa/keyidPieter Wuille
Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddress
2012-05-25Remove newlines from JSON stringsGavin Andresen
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).
2012-05-25Unit tests for transaction size limitsGavin Andresen
2012-05-24Lots more Script unit test cases.Gavin Andresen
2012-05-24Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddressPieter Wuille
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.
2012-05-24Encapsulate public keys in CPubKeyPieter Wuille
2012-05-24More CScript unit tests.Gavin Andresen
2012-05-24DoS_tests: fix signed/unsigned comparison warningsJeff Garzik
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]
2012-05-22Merge branch 'optimize'Gavin Andresen
2012-05-20Make testcases build, prevent windows symbol collisionWladimir J. van der Laan
2012-05-18change strings to Bitcoin (uppercase), where it is used as a noun and update ↵Philip Kaufmann
strings to use "Qt" (and not qt or QT) / update initialisation of notificator to use qApp->applicationName() instead of a static string
2012-05-18Cache signature verificationsGavin Andresen
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.
2012-05-18Optimize orphan transaction handlingGavin Andresen
Changes suggested by Sergio Demian Lerner to help prevent potential DoS attacks.
2012-05-17Refactor: GetRandHash() method for utilGavin Andresen
2012-05-14Add test case for CBigNum::setint64().Ricardo M. Correia
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.
2012-05-09Clean up warningsPieter Wuille
* Use -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameters * Remove xCXXFLAGS usage in makefile.unix * Fix several recent and older sign-compare warnings
2012-05-04Support for multiple local addressesPieter Wuille
2012-04-26Define TEST_DATA_DIR so unit tests can be run from any current working directoryGavin Andresen
2012-04-23SigOp and orphan-tx constants and counts are always unsigned.Jeff Garzik
Fixes several sign-comparison warnings.
2012-04-21Merge pull request #1124 from sipa/rpcobj3Pieter Wuille
extension of #1103: encapsulate mapCommands in CRPCTable
2012-04-21Merge pull request #1131 from laanwj/2012_04_hexstrPieter Wuille
Integrate @JoelKatz's optimized ToHex (#562) into current HexStr function
2012-04-21Data-drive script evaluation unit tests.Gavin Andresen
2012-04-21Integrate @JoelKatz's optimized ToHex (#562) into current HexStr functionWladimir J. van der Laan
2012-04-21Expose CRPCTable via bitcoinrpc.h for testingPieter Wuille
2012-04-17Fix tests after recent refactorsPieter Wuille
2012-04-12CBitcoinSecret::SetString() now calls IsValid() to make sure it was passed ↵Chris Moore
something with the correct version.
2012-04-09Use scoped locks instead of CRITICAL_BLOCKPieter Wuille
2012-02-29DoS fix for mapOrphanTransactionsv0.6.0rc2Gavin Andresen
2012-02-27Add mruset and use it for setInventoryKnownPieter Wuille
2012-02-20Fix tests after 38067c18Pieter Wuille
2012-02-07New GetArg features: allow --, and booleans can be -foo or -nofooGavin Andresen