aboutsummaryrefslogtreecommitdiff
path: root/src/test/DoS_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Bugfix: Fix a variety of misspellingsLuke Dashjr2012-08-011-1/+1
|
* Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddressPieter Wuille2012-05-241-5/+5
| | | | | | | | | | | | | | | | | 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.
* 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
| |
* | Support for multiple local addressesPieter Wuille2012-05-041-4/+4
|/
* SigOp and orphan-tx constants and counts are always unsigned.Jeff Garzik2012-04-231-1/+1
| | | | Fixes several sign-comparison warnings.
* Fix tests after recent refactorsPieter Wuille2012-04-171-2/+2
|
* DoS fix for mapOrphanTransactionsv0.6.0rc2Gavin Andresen2012-02-291-0/+79
|
* Network stack refactorPieter Wuille2012-01-061-18/+25
| | | | | | | | | | | | | | | This introduces CNetAddr and CService, respectively wrapping an (IPv6) IP address and an IP+port combination. This functionality used to be part of CAddress, which also contains network flags and connection attempt information. These extra fields are however not always necessary. These classes, along with logic for creating connections and doing name lookups, are moved to netbase.{h,cpp}, which does not depend on headers.h. Furthermore, CNetAddr is mostly IPv6-ready, though IPv6 functionality is not yet enabled for the application itself.
* Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan2011-12-211-6/+4
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-4/+6
|
* Rework unit tests so test_bitcoin.cpp does not #include them allGavin Andresen2011-12-191-3/+4
|
* Orphan block fill-up-memory attack preventionGavin Andresen2011-12-011-0/+51
|
* Moved checkpoints out of main, to prep for using them to help prevent DoS ↵Gavin Andresen2011-12-011-1/+0
| | | | attacks
* Framework for banning mis-behaving peersGavin Andresen2011-09-211-0/+68