aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | Merge pull request #4165Wladimir J. van der Laan2014-05-123-227/+219
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | f6b7c64 Move base58.h implementation code to base58.cpp (Pieter Wuille)
| * | | | | | | | Move base58.h implementation code to base58.cppPieter Wuille2014-05-103-227/+219
| | |_|_|/ / / / | |/| | | | | |
* | | | | | | | Merge pull request #4161Wladimir J. van der Laan2014-05-129-43/+60
|\ \ \ \ \ \ \ \ | |_|_|/ / / / / |/| | | | | | | | | | | | | | | 938b689 Squashed 'src/leveldb/' changes from 9094c7f..7924331 (Pieter Wuille)
| * | | | | | | Merge src/leveldb changes for LevelDB 1.17.Pieter Wuille2014-05-099-43/+60
| |/ / / / / /
* | | / / / / Switch stdout to line bufferingshshshsh2014-05-111-0/+2
| |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | Use line buffering (instead of block buffering) so that messages arrive immediately in systemd-journald, tail -f debug.log, and the like.
* | | | | | Merge pull request #4160Wladimir J. van der Laan2014-05-108-670/+182
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7cd0af7 Move bignum.h to test/ (Pieter Wuille) ccc84e0 Reduce bignum.h now it is only needed for scriptnum_tests (Pieter Wuille)
| * | | | | | Move bignum.h to test/Pieter Wuille2014-05-093-1/+2
| | | | | | |
| * | | | | | Reduce bignum.h now it is only needed for scriptnum_testsPieter Wuille2014-05-096-492/+3
| | | | | | |
* | | | | | | fixes #4163Matthew Bogosian2014-05-091-1/+1
| |/ / / / / |/| | | | |
* | | | | | Merge pull request #4102Wladimir J. van der Laan2014-05-099-79/+301
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | | | Add tests for BoostAsioToCNetAddrWladimir J. van der Laan2014-05-093-2/+21
| | | | | |
| * | | | | Remove unused function WildcardMatchWladimir J. van der Laan2014-05-093-57/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No longer necessary after implementing netmask-based matching. Also remove a longer-unused function `skipspaces`.
| * | | | | rpc: Use netmasks instead of wildcards for IP address matchingWladimir J. van der Laan2014-05-091-14/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `-rpcallowip` currently has a wacky wildcard-based format. After this commit it will accept the more standard format, for example: - Ranges with netmask 127.0.0.0/255.255.255.0, ::/0 - Ranges with cidr 12.3.4.5/24, 12:34:56:78:9a:bc:de:00/112 - Loose IPs ::1, 127.0.0.1 Trying to use the old *?-based format will result in an error message at launch.
| * | | | | net: Add CSubNet class for subnet matchingWladimir J. van der Laan2014-05-093-3/+187
| | | | | |
| * | | | | Use new function parseint32 in SplitHostPortWladimir J. van der Laan2014-05-091-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the new function parseint32 in SplitHostPort instead of calling strtol directly.
| * | | | | util: add parseint32 function with strict error reportingWladimir J. van der Laan2014-05-093-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge pull request #4076Wladimir J. van der Laan2014-05-0913-508/+473
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 397668e Deduplicate uint* comparison operator logic (Pieter Wuille) df9eb5e Move {Get,Set}Compact from bignum to uint256 (Pieter Wuille) a703150 Add multiplication and division to uint160/uint256 (Pieter Wuille) 4d480c8 Exception instead of assigning 0 in case of wrong vector length (Pieter Wuille) eb2cbd7 Deduplicate shared code between uint160 and uint256 (Pieter Wuille)
| * | | | | | Deduplicate uint* comparison operator logicPieter Wuille2014-05-091-69/+20
| | | | | | |
| * | | | | | Move {Get,Set}Compact from bignum to uint256Pieter Wuille2014-05-0913-199/+243
| | | | | | |
| * | | | | | Add multiplication and division to uint160/uint256Pieter Wuille2014-05-092-0/+141
| | | | | | |
| * | | | | | Exception instead of assigning 0 in case of wrong vector lengthPieter Wuille2014-05-092-10/+15
| | | | | | |
| * | | | | | Deduplicate shared code between uint160 and uint256Pieter Wuille2014-05-091-241/+65
| |/ / / / /
* | | | | | Merge pull request #4134Wladimir J. van der Laan2014-05-099-75/+19
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | aa250f0 Remove NumBlocksOfPeers (Wladimir J. van der Laan)
| * | | | | Remove NumBlocksOfPeersWladimir J. van der Laan2014-05-069-75/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generally useless information. Only updates on connect time, not after that. Peers can easily lie and the median filter is not effective in preventing that. In the past it was used for progress display in the GUI but `CheckPoints::guessVerificationProgress` provides a better way that is now used. It was too easy to mislead it. Peers do lie about it in practice, see issue #4065. From the RPC, `getpeerinfo` gives the peer raw values, which are more useful.
* | | | | | Fix transaction testsWladimir J. van der Laan2014-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Conflict between low-s (6fd7ef2) and test updates in d3a33fc.
* | | | | | Merge pull request #3637Wladimir J. van der Laan2014-05-095-25/+78
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 6fd7ef2 Also switch the (unused) verification code to low-s instead of even-s. (Pieter Wuille)
| * | | | | | Also switch the (unused) verification code to low-s instead of even-s.Pieter Wuille2014-03-105-25/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | Merge pull request #3843Wladimir J. van der Laan2014-05-0912-71/+211
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | | | | | Check redeemScript size does not exceed 520 byte limitPeter Todd2014-05-083-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | redeemScripts >520bytes can't be spent due to the MAX_SCRIPT_ELEMENT_SIZE limit; previously the addmultisigaddress and createmultisig RPC calls would let you violate that limit unknowingly. Also made the wallet code itself check the redeemScript prior to adding it to the wallet, which in the (rare) instance that a user has added an invalid oversized redeemScript to their wallet causes an error on startup. The affected key isn't added to the wallet; other keys are unaffected.
| * | | | | | | Increase IsStandard() scriptSig lengthPeter Todd2014-05-081-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the limits on number of pubkeys for P2SH CHECKMULTISIG outputs. Previously with the 500 byte scriptSig limit there were odd restrictions where even a 1-of-12 P2SH could be spent in a standard transaction(1), yet multisig scriptPubKey's requiring more signatures quickly ran out of scriptSig space. From a "stuff-data-in-the-blockchain" point of view not much has changed as with the prior commit now only allowing the dummy value to be null the newly allowed scriptSig space can only be used for signatures. In any case, just using more outputs is trivial and doesn't cost much. 1) See 779b519480d8c5346de6e635119c7ee772e97ec872240c45e558f582a37b4b73 Mined by BTC Guild.
| * | | | | | | Do not trigger a DoS ban if SCRIPT_VERIFY_NULLDUMMY failsPeter Todd2014-05-082-6/+24
| | | | | | | |
| * | | | | | | Add rejection of non-null CHECKMULTISIG dummy valuesPeter Todd2014-05-085-5/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | Let tx (in)valid tests use any SCRIPT_VERIFY flagPeter Todd2014-05-053-49/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously only P2SH could be set.
| * | | | | | | Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constantsPeter Todd2014-05-056-5/+20
| | |/ / / / / | |/| | | | |
* | | | | | | Merge pull request #3965Wladimir J. van der Laan2014-05-098-73/+387
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | | | | | script: Add test for CScriptNumCory Fields2014-04-222-0/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | script: add additional script testsCory Fields2014-04-222-0/+16
| | | | | | | |
| * | | | | | | script: remove bignum dependencyCory Fields2014-04-222-9/+0
| | | | | | | |
| * | | | | | | script: switch outside users to CScriptNumCory Fields2014-04-222-2/+2
| | | | | | | |
| * | | | | | | script: switch to CScriptNum usage for scriptsCory Fields2014-04-222-67/+28
| | | | | | | |
| * | | | | | | script: add CScriptNum classCory Fields2014-04-221-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This class holds an int64_t and replaces the use of CBigInt for script integrals.
* | | | | | | | Merge pull request #3884Wladimir J. van der Laan2014-05-092-72/+179
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 942b33a Split AcceptBlockHeader from AcceptBlock. (Pieter Wuille) f457347 Split up CheckBlock in a block and header version (Pieter Wuille)
| * | | | | | | | Split AcceptBlockHeader from AcceptBlock.Pieter Wuille2014-04-252-64/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also modify some connection logic to deal with non-full blocks in the index.
| * | | | | | | | Split up CheckBlock in a block and header versionPieter Wuille2014-04-252-9/+18
| | | | | | | | |
* | | | | | | | | Merge pull request #3860 from petertodd/test-checkmulti-n-m-zeroGavin Andresen2014-05-093-1/+107
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Test CHECKMULTISIG with m == 0 and/or n == 0
| * | | | | | | | | Test CHECKMULTISIG with m == 0 and n == 0Peter Todd2014-03-122-0/+80
| | | | | | | | | |
| * | | | | | | | | Fix script test handling of empty scriptsPeter Todd2014-03-123-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously an empty script would evaluate to OP_0
* | | | | | | | | | Merge pull request #4136Wladimir J. van der Laan2014-05-092-14/+13
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | 01ce711 [Qt] fix Qt slot problem in receivecoinsdialog (Philip Kaufmann)
| * | | | | | | | | [Qt] fix Qt slot problem in receivecoinsdialogPhilip Kaufmann2014-05-062-14/+13
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fixes error from debug.log: QMetaObject::connectSlotsByName: No matching signal for on_recentRequestsView_selectionChanged(QItemSelection,QItemSelection) - small style fixes (e.g. alphabetical ordering if includes etc.) - fixes #3992
* | | | | | | | | qt: fix compile issue in Qt GUIWladimir J. van der Laan2014-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was introduced in 3e1cf9b. Needs a cast to qint64.