aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Unit tests for the GetArg() methodsGavin Andresen2012-02-071-0/+95
|
* Merge branch 'standardScriptSigs' of github.com:gavinandresen/bitcoin-gitGavin Andresen2012-02-072-6/+27
|\
| * Make transactions with extra data in their scriptSig's non-standard.Gavin Andresen2012-01-192-6/+27
| |
* | Simplify counting of P2SH sigops to match BIP 16 (thanks to Matt Corallo for ↵Gavin Andresen2012-01-202-5/+14
|/ | | | | | prompting this). This also removes an un-needed sigops-per-byte check when accepting transactions to the memory pool (un-needed assuming only standard transactions are being accepted). And it only counts P2SH sigops after the switchover date.
* Refactored ConnectInputs, so valid-transaction-checks are done before ↵Gavin Andresen2012-01-131-0/+85
| | | | ECDSA-verifying signatures.
* Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16).Gavin Andresen2012-01-138-306/+498
|
* Unit tests for EC key routinesPieter Wuille2012-01-091-0/+138
| | | | | | | | This tests: * creation of keys from base58-encoded strings * extracting public keys and addresses * compressed public keys * compact signatures and key recovery
* 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.
* make sure IsMine only returns true when we own all keyscoderrr2012-01-031-1/+4
|
* Fixed OP_EVAL recursion unit test, checks for both infinite and ↵Gavin Andresen2011-12-271-19/+53
| | | | exactly-3-deep recursion
* Fix broken ExtractAddress (refactored, made callers check for addresses in ↵Gavin Andresen2011-12-221-4/+4
| | | | keystore if they care)
* Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan2011-12-216-19/+7
| | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-206-7/+19
|
* Use block times for 'hard' OP_EVAL switchover, and refactored EvalScriptGavin Andresen2011-12-193-62/+46
| | | | | | so it takes a flag for how to interpret OP_EVAL. Also increased IsStandard size of scriptSigs to 500 bytes, so a 3-of-3 multisig transaction IsStandard.
* Interpret OP_EVAL as OP_NOP until Feb 1, 2012Gavin Andresen2011-12-191-3/+51
|
* OP_EVAL implementationGavin Andresen2011-12-193-65/+277
| | | | | | OP_EVAL is a new opcode that evaluates an item on the stack as a script. It enables a new type of bitcoin address that needs an arbitrarily complex script to redeem.
* Global fixture to send output to console instead of debug.logGavin Andresen2011-12-191-0/+10
|
* Support 3 new multisignature IsStandard transactionsGavin Andresen2011-12-191-0/+288
| | | | | Initial support for (a and b), (a or b), and 2-of-3 escrow transactions (where a, b, and c are keys).
* Rework unit tests so test_bitcoin.cpp does not #include them allGavin Andresen2011-12-1910-30/+26
|
* 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-013-1/+35
| | | | attacks
* Added simple critical section test cases.Clark Gaebel2011-11-021-0/+19
|
* Fix miner_test unit test bugGavin Andresen2011-10-051-3/+3
|
* Merge branch 'no-cryptopp' of https://github.com/tcatm/bitcoinGavin Andresen2011-10-052-1/+37
|\
| * remove cryptopp dependency, add simple unittest for SHA256Transform()Nils Schneider2011-09-302-1/+37
| |
* | Declare integer constant LLGavin Andresen2011-10-031-1/+1
| |
* | remove possibility of 63 bit overflow in ParseMoneyWladimir J. van der Laan2011-10-013-7/+274
|/ | | | - also, add unit tests for various functions in util.cpp/util.h
* Merge pull request #524 from sipa/signandverifGavin Andresen2011-09-302-0/+21
|\ | | | | Sign and verify message with bitcoin address
| * Test case for base64 encode/decodePieter Wuille2011-09-272-0/+21
| |
* | Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-09-282-1/+69
|\| | | | | | | | | | | Conflicts: .gitignore (used upstream version) bitcoin-qt.pro
| * Framework for banning mis-behaving peersGavin Andresen2011-09-212-1/+69
| |
* | use median filter for peer-reported reported number of blocksWladimir J. van der Laan2011-09-281-0/+36
|/ | | | | | - fixes problem that one misconfigured or malicious node can mess up progress bar - implementation in src/util.h - testcase in src/test/util_tests.cpp
* CHECKMULTISIG unit tests.Gavin Andresen2011-08-261-0/+136
|
* Cleanup test suite output to be more useful.Matt Corallo2011-08-083-3/+3
|
* Add file for transaction tests.Matt Corallo2011-08-082-0/+26
|
* Add a file for script testsVegard Nossum2011-08-082-0/+38
|