aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2014-05-13Fix build in OS X 10.9Federico Bond
2014-05-12Merge pull request #4138Wladimir J. van der Laan
783b182 Remove dummy PRIszX macros for formatting (Wladimir J. van der Laan)
2014-05-12Merge pull request #4165Wladimir J. van der Laan
f6b7c64 Move base58.h implementation code to base58.cpp (Pieter Wuille)
2014-05-10Merge pull request #4160Wladimir J. van der Laan
7cd0af7 Move bignum.h to test/ (Pieter Wuille) ccc84e0 Reduce bignum.h now it is only needed for scriptnum_tests (Pieter Wuille)
2014-05-10Move base58.h implementation code to base58.cppPieter Wuille
2014-05-09Move bignum.h to test/Pieter Wuille
2014-05-09Reduce bignum.h now it is only needed for scriptnum_testsPieter Wuille
2014-05-09Merge pull request #4102Wladimir J. van der Laan
21bf3d2 Add tests for BoostAsioToCNetAddr (Wladimir J. van der Laan) fdbd707 Remove unused function WildcardMatch (Wladimir J. van der Laan) ee21912 rpc: Use netmasks instead of wildcards for IP address matching (Wladimir J. van der Laan) e16be73 net: Add CSubNet class for subnet matching (Wladimir J. van der Laan) d864275 Use new function parseint32 in SplitHostPort (Wladimir J. van der Laan) 0d4ea1c util: add parseint32 function with strict error reporting (Wladimir J. van der Laan)
2014-05-09Add tests for BoostAsioToCNetAddrWladimir J. van der Laan
2014-05-09Remove unused function WildcardMatchWladimir J. van der Laan
No longer necessary after implementing netmask-based matching. Also remove a longer-unused function `skipspaces`.
2014-05-09net: Add CSubNet class for subnet matchingWladimir J. van der Laan
2014-05-09util: add parseint32 function with strict error reportingWladimir J. van der Laan
None of the current integer parsing functions in util check whether the result is valid and fits in the range of the type. This is required for less sloppy error reporting.
2014-05-09Move {Get,Set}Compact from bignum to uint256Pieter Wuille
2014-05-09Add multiplication and division to uint160/uint256Pieter Wuille
2014-05-09Exception instead of assigning 0 in case of wrong vector lengthPieter Wuille
2014-05-09Fix transaction testsWladimir J. van der Laan
Conflict between low-s (6fd7ef2) and test updates in d3a33fc.
2014-05-09Merge pull request #3637Wladimir J. van der Laan
6fd7ef2 Also switch the (unused) verification code to low-s instead of even-s. (Pieter Wuille)
2014-05-09Merge pull request #3843Wladimir J. van der Laan
787ee0c Check redeemScript size does not exceed 520 byte limit (Peter Todd) 4d79098 Increase IsStandard() scriptSig length (Peter Todd) f80cffa Do not trigger a DoS ban if SCRIPT_VERIFY_NULLDUMMY fails (Peter Todd) 6380180 Add rejection of non-null CHECKMULTISIG dummy values (Peter Todd) 29c1749 Let tx (in)valid tests use any SCRIPT_VERIFY flag (Peter Todd) 68f7d1d Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants (Peter Todd)
2014-05-09Merge pull request #3965Wladimir J. van der Laan
b1fdd54 script: Add test for CScriptNum (Cory Fields) 90320d6 script: add additional script tests (Cory Fields) 05e3ecf script: remove bignum dependency (Cory Fields) 4f497cd script: switch outside users to CScriptNum (Cory Fields) 27bff74 script: switch to CScriptNum usage for scripts (Cory Fields) 48d8eb1 script: add CScriptNum class (Cory Fields)
2014-05-09Merge pull request #3860 from petertodd/test-checkmulti-n-m-zeroGavin Andresen
Test CHECKMULTISIG with m == 0 and/or n == 0
2014-05-08Add rejection of non-null CHECKMULTISIG dummy valuesPeter Todd
This is a source of transaction mutability as the dummy value was previously not checked and could be modified to something other than the usual OP_0 value.
2014-05-06Remove dummy PRIszX macros for formattingWladimir J. van der Laan
Size specifiers are no longer needed now that we use typesafe tinyformat for string formatting, instead of the system's sprintf. No functional changes. This continues the work in #3735.
2014-05-05Let tx (in)valid tests use any SCRIPT_VERIFY flagPeter Todd
Previously only P2SH could be set.
2014-05-02Merge pull request #4074Wladimir J. van der Laan
d3081fa Removed LevelDB changes (super3)
2014-05-01Removed LevelDB changessuper3
Syntax Highlighting
2014-04-23Add required locks in testsWladimir J. van der Laan
Unit tests with DEBUG_LOCKORDER were running into assertions.
2014-04-22script: Add test for CScriptNumCory Fields
Because this class replaces some usages of CBigNum, tests have been added to verify that they function the same way. The only difference in their usage is the handling of out-of-range numbers. While operands are constrained to [-0x7FFFFFFF,0x7FFFFFFF], the results may overflow. The overflowing result is technically unbounded, but in practice it can be no bigger than the result of an operation on two operands. This implementation limits them to the size of an int64. CBigNum was unaware of this constraint, so it allowed for unbounded results, which were then checked before use. CScriptNum asserts if an arithmetic operation will overflow an int64_t, since scripts are not able to reach those numbers anyway. Additionally, CScriptNum will throw an exception when constructed from a vector containing more than 4 bytes This mimics the previous CastToBigNum behavior.
2014-04-22script: add additional script testsCory Fields
2014-04-02Merge pull request #3842 from ditto-b/masterGavin Andresen
Fix for GetBlockValue() after block 13,440,000
2014-04-02Edit subsidy_limit_test to account for BIP42ditto-b
Because no one wants 4 gold mines being discovered every mibillenium.
2014-03-31add checks for deserialization errorsManuel Araoz
2014-03-31Add code generating data/sighash.json test dataManuel Araoz
2014-03-31Add sighash tests from data fileManuel Araoz
2014-03-26Merge pull request #3951Wladimir J. van der Laan
3cb1edb Update moved and dead links (Luke Dashjr)
2014-03-25Fix test build after d138598Wladimir J. van der Laan
Building the tests was giving some vague error message about a doubly-defined symbol. The solution is to define ShutdownRequested in test_bitcoin.cpp as well so that init.cpp does not get pulled in.
2014-03-24Update moved and dead linksLuke Dashjr
2014-03-18Add licenses for tests and test dataWladimir J. van der Laan
- Add license headers to source files (years based on commit dates) in `src/test` as well as `qa` - Add `README.md` to `src/test/data` specifying MIT license Fixes #3848
2014-03-15Merge pull request #3650Wladimir J. van der Laan
2b45345 minor style cleanups (Philip Kaufmann)
2014-03-12Test CHECKMULTISIG with m == 0 and n == 0Peter Todd
2014-03-12Fix script test handling of empty scriptsPeter Todd
Previously an empty script would evaluate to OP_0
2014-03-11minor style cleanupsPhilip Kaufmann
2014-03-11Add script test to prove that OP_0 evaluates as the empty vector, rather ↵Andreas Schildbach
than [0].
2014-03-10Also switch the (unused) verification code to low-s instead of even-s.Pieter Wuille
a81cd968 introduced a malleability breaker for signatures (using an even value for S). In e0e14e43 this was changed to the lower of two potential values, rather than the even one. Only the signing code was changed though, the (for now unused) verification code wasn't adapted.
2014-03-10Merge pull request #3514Wladimir J. van der Laan
f59d8f0 Per-peer block download tracking and stalled download detection. (Pieter Wuille)
2014-03-07Merge pull request #3768Wladimir J. van der Laan
fecba4e Total money limit test (Pieter Wuille)
2014-03-05Total money limit testPieter Wuille
Added bounds check by @il--ya. Updated-by: Wladimir van der Laan <laanwj@gmail.com>
2014-02-26Merge pull request #3737 from jgarzik/op-return-sizeGavin Andresen
script: reduce OP_RETURN standard relay bytes to 40
2014-02-26script: reduce OP_RETURN standard relay bytes to 40Jeff Garzik
Per mailing list discussion.
2014-02-26Merge pull request #3735 from laanwj/2014_02_remove_PRIx64_completelyGavin Andresen
Remove PRIx64 usage completely
2014-02-25Merge pull request #3559Wladimir J. van der Laan
e6c6bc9 Adds additional zero checks for setCompact These encoded values should all decode to zero (Noel Tiernan)