aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* refactor: move bdb (bitdb) interaction from init.cpp to wallet.cppJonas Schnelli2015-03-203-44/+72
| | | | this will remove db.h from init.cpp
* Merge pull request #5745Wladimir J. van der Laan2015-03-2038-53/+53
|\ | | | | | | 50c72f2 [Move Only] Move wallet related things to src/wallet/ (Jonas Schnelli)
| * [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-1238-53/+53
| | | | | | | | could once be renamed from /src/wallet to /src/legacywallet.
* | allocators: split allocators and pagelockerCory Fields2015-03-2012-102/+129
| | | | | | | | | | Pagelocker is only needed for secure (usually wallet) operations, so don't make the zero-after-free allocator depend on it.
* | Merge pull request #5860Wladimir J. van der Laan2015-03-172-6/+18
|\ \ | | | | | | | | | 9c27379 Reduce fingerprinting through timestamps in 'addr' messages. (Pieter Wuille)
| * | Reduce fingerprinting through timestamps in 'addr' messages.Pieter Wuille2015-03-172-6/+18
| | | | | | | | | | | | Suggested by Jonas Nick.
* | | Merge pull request #5880Wladimir J. van der Laan2015-03-163-41/+31
|\ \ \ | | | | | | | | | | | | | | | | 8b60808 [QT] some mac specifiy cleanup (memory handling, unnecessary code) (Jonas Schnelli) 89e70e9 [QT] fix OSX dock icon window reopening (Jonas Schnelli)
| * | | [QT] some mac specifiy cleanup (memory handling, unnecessary code)Jonas Schnelli2015-03-133-10/+7
| | | |
| * | | [QT] fix OSX dock icon window reopeningJonas Schnelli2015-03-121-31/+24
| | |/ | |/| | | | | | | fixes #5878
* | | Merge pull request #5831Wladimir J. van der Laan2015-03-1615-89/+261
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 1d9b378 qa/rpc-tests/wallet: Tests for sendmany (Luke Dashjr) 40a7573 rpcwallet/sendmany: Just take an array of addresses to subtract fees from, rather than an Object with all values being identical (Luke Dashjr) 292623a Subtract fee from amount (Cozz Lovan) 90a43c1 [Qt] Code-movement-only: Format confirmation message in sendcoinsdialog (Cozz Lovan)
| * | | rpcwallet/sendmany: Just take an array of addresses to subtract fees from, ↵Luke Dashjr2015-03-131-11/+11
| | | | | | | | | | | | | | | | rather than an Object with all values being identical
| * | | Subtract fee from amountCozz Lovan2015-03-1315-62/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #2724 and #1570. Adds the automatically-subtract-the-fee-from-the-amount-and-send-whats-left feature to the GUI and RPC (sendtoaddress,sendmany).
| * | | [Qt] Code-movement-only: Format confirmation message in sendcoinsdialogCozz Lovan2015-03-051-29/+30
| | | |
* | | | Merge pull request #5884Wladimir J. van der Laan2015-03-121-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | e96c518 BUGFIX: Stack around the variable 'rv' was corrupted (fsb4000)
| * | | | BUGFIX: Stack around the variable 'rv' was corruptedfsb40002015-03-121-2/+2
| | | | |
* | | | | fix InvalidateBlock to repopulate setBlockIndexCandidatesAlex Morcos2015-03-121-1/+1
|/ / / /
* | | | Merge pull request #5859Wladimir J. van der Laan2015-03-122-2/+34
|\ \ \ \ | | | | | | | | | | | | | | | 9519a9a Add correct bool combiner for net signals (Pieter Wuille)
| * | | | Add correct bool combiner for net signalsPieter Wuille2015-03-062-2/+34
| | | | |
* | | | | tests: add a BasicTestingSetup and apply to all testsWladimir J. van der Laan2015-03-1235-36/+90
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
* | | | Merge pull request #5871Wladimir J. van der Laan2015-03-118-83/+4
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | 3aa0130 test: remove fSkipProofOfWork (Wladimir J. van der Laan) 59bd89f test: Remove UNITTEST params (Wladimir J. van der Laan)
| * | | test: remove fSkipProofOfWorkWladimir J. van der Laan2015-03-094-9/+1
| | | | | | | | | | | | | | | | | | | | Not used, and REGTEST already allows creating blocks at the lowerst possible difficulty.
| * | | test: Remove UNITTEST paramsWladimir J. van der Laan2015-03-096-74/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UNITTEST parameter are not used by any current tests, and the model (modifyable parameters) is inconvenient when unit-testing. As they are stored in a global structure eevery test would have to (re)set up its own parameters. For consistency it is also better to test with MAIN parameters.
* | | | Merge pull request #5749Wladimir J. van der Laan2015-03-116-215/+230
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | f754707 Fix - bitcoin-qt usage message (Luca Venturini) 1fdb9fa Help messages correctly formatted (79 chars) (Luca Venturini)
| * | | | Fix - bitcoin-qt usage messageLuca Venturini2015-03-102-54/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . Closes the bug from commit e179eb3d9bfec7e67908242c71c87b716a41c97c ("bitcoin-qt -help" did not show any message) . Move all the options in init.cpp (there were already some options related to bitcoin-qt)
| * | | | Help messages correctly formatted (79 chars)Luca Venturini2015-03-105-161/+193
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Help messages are formatted programmatically with FormatParagraph in order not to break existing strings in Transifex. The new format works even if the translation of the strings modifies the lenght of the message. Sqashed 6 commits in a single one. Help messages correctly formatted for SVGA text mode (132 chars) Help messages are formatted programmatically with FormatParagraph in order not to break existing strings in Transifex. The new format should work even if the translation of the strings modifies the lenght of the message. Fix - syntax error Correct formatting for 79 chars Correctly based on C++ functions Removed spare spaces from option strings Fix - syntax error
* | | | Merge pull request #5864Wladimir J. van der Laan2015-03-111-1/+4
|\ \ \ \ | |/ / / |/| | | | | | | bb6acff fix possible block db breakage during re-index (Cory Fields)
| * | | fix possible block db breakage during re-indexCory Fields2015-03-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When re-indexing, there are a few cases where garbage data may be skipped in the block files. In these cases, the indices are correctly written to the index db, however the pointer to the next position for writing in the current block file is calculated by adding the sizes of the valid blocks found. As a result, when the re-index is finished, the index db is correct for all existing blocks, but the next block will be written to an incorrect offset, likely overwriting existing blocks. Rather than using the sum of all valid blocks to determine the next write position, use the end of the last block written to the file. Don't assume that the current block is the last one in the file, since they may be read out-of-order.
* | | | tests: change main and wallet tests to BOOST_FIXTURE_TEST_SUITEWladimir J. van der Laan2015-03-092-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid this travis error: test_bitcoin: chainparams.cpp:330: const CChainParams& Params(): Assertion `pCurrentParams' failed. unknown location(0): fatal error in "subsidy_limit_test": signal: SIGABRT (application abort requested) test/allocator_tests.cpp(116): last checkpoint
* | | | Merge pull request #5852Wladimir J. van der Laan2015-03-0914-61/+124
|\ \ \ \ | | | | | | | | | | | | | | | 51598b2 Reinitialize state in between individual unit tests. (Pieter Wuille)
| * | | | Reinitialize state in between individual unit tests.Pieter Wuille2015-03-0314-61/+124
| | | | | | | | | | | | | | | | | | | | | | | | | This changes the TestingSetup fixture to be per-unit-test rather than global. Most tests don't need it, so it's only invoked in a few.
* | | | | Merge pull request #5442Wladimir J. van der Laan2015-03-091-1/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | dca799e Ignore getaddr messages on Outbound connections. (Ivan Pustogarov)
| * | | | | Ignore getaddr messages on Outbound connections.Ivan Pustogarov2015-02-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only time when a client sends a "getaddr" message is when he esatblishes an Outbound connection (see ProcessMessage() in src/main.cpp). Another bitcoin client is expected to receive a "getaddr" message only on Inbound connection. Ignoring "gettaddr" requests on Outbound connections can resolve potential privacy issues (and as was said such request normally do not happen anyway).
* | | | | | [Qt] rework setNumBlocks to have blockDate as parameterPhilip Kaufmann2015-03-097-23/+28
| | | | | | | | | | | | | | | | | | | | | | | | - reduces some functional overhead and simplifies the code
* | | | | | Merge pull request #5858Wladimir J. van der Laan2015-03-091-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 9bbb880 [Qt] fix a issue where "command line options"-action overwrite "Preference"-action (on OSX) (Jonas Schnelli)
| * | | | | | [Qt] fix a issue where "command line options"-action overwrite ↵Jonas Schnelli2015-03-061-0/+1
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | "Preference"-action (on OSX) - fixes #5800
* | | | | | Merge pull request #5793Wladimir J. van der Laan2015-03-091-11/+35
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6cb4a52 [Qt, Linux] honor current network when creating autostart link (Philip Kaufmann) 9673c35 [Qt, Win] honor current network when creating autostart link (Philip Kaufmann)
| * | | | | | [Qt, Linux] honor current network when creating autostart linkPhilip Kaufmann2015-02-191-3/+8
| | | | | | |
| * | | | | | [Qt, Win] honor current network when creating autostart linkPhilip Kaufmann2015-02-191-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - creates a "Bitcoin (testnet).lnk" when on testnet or a "Bitcoin (regtest).lnk, when on regtest - fixes #5778
* | | | | | | Merge pull request #5151Pieter Wuille2015-03-076-18/+17
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | | | | | | | | eec3713 make CMessageHeader a dumb storage class (Cory Fields)
| * | | | | | make CMessageHeader a dumb storage classCory Fields2015-02-256-18/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It shouldn't know or care about bitcoind's chain param selection
* | | | | | | Replace CBlockHeader::GetHash with call to SerializeHashWladimir J. van der Laan2015-03-061-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes variability between LE and BE. As suggested by @sipa.
* | | | | | | Add serialize float/double testsWladimir J. van der Laan2015-03-061-3/+93
| | | | | | |
* | | | | | | src/txmempool.cpp: make numEntries a uint32_tWladimir J. van der Laan2015-03-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't ever serialize a size_t or long, their sizes are platform dependent.
* | | | | | | src/arith_256.cpp: bigendian compatibilityWladimir J. van der Laan2015-03-061-4/+5
| | | | | | |
* | | | | | | src/netbase.h: Fix endian in CNetAddr serializationWladimir J. van der Laan2015-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've chosen to htons/ntohs explicitly on reading and writing (I do not know why). But as READWRITE already does an endian swap on big endian, this means the port number gets switched around, which was what we were trying to avoid in the first place. So to make this compatible, serialize it as FLATDATA.
* | | | | | | src/serialize.h: base serialization level endianness neutralityWladimir J. van der Laan2015-03-062-76/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Serialization type-safety and endianness compatibility.
* | | | | | | src/script/script.h: endian compatibility for PUSHDATA sizesWladimir J. van der Laan2015-03-061-7/+9
| | | | | | |
* | | | | | | src/primitives/transaction.h: endian compatibility in serializationWladimir J. van der Laan2015-03-061-1/+2
| | | | | | |
* | | | | | | src/primitives/block.cpp: endian compatibility in GetHashWladimir J. van der Laan2015-03-061-0/+12
| | | | | | |
* | | | | | | src/net.cpp: endian compatibility in EndMessageWladimir J. van der Laan2015-03-061-1/+2
| | | | | | |