aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-03-16Merge pull request #5831Wladimir J. van der Laan
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)
2015-03-16Merge pull request #5849Wladimir J. van der Laan
3c6d594 contrib/init/bitcoind.openrc: Compatibility with previous OpenRC init script variables (Luke Dashjr)
2015-03-13qa/rpc-tests/wallet: Tests for sendmanyLuke Dashjr
2015-03-13rpcwallet/sendmany: Just take an array of addresses to subtract fees from, ↵Luke Dashjr
rather than an Object with all values being identical
2015-03-13Subtract fee from amountCozz Lovan
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).
2015-03-12Merge pull request #5884Wladimir J. van der Laan
e96c518 BUGFIX: Stack around the variable 'rv' was corrupted (fsb4000)
2015-03-12Merge pull request #5879Wladimir J. van der Laan
88f6c8c add RPC test for InvalidateBlock (Alex Morcos) a9af415 fix InvalidateBlock to repopulate setBlockIndexCandidates (Alex Morcos)
2015-03-12BUGFIX: Stack around the variable 'rv' was corruptedfsb4000
2015-03-12add RPC test for InvalidateBlockAlex Morcos
2015-03-12fix InvalidateBlock to repopulate setBlockIndexCandidatesAlex Morcos
2015-03-12Merge pull request #5859Wladimir J. van der Laan
9519a9a Add correct bool combiner for net signals (Pieter Wuille)
2015-03-12Merge pull request #5883Wladimir J. van der Laan
92fd887 tests: add a BasicTestingSetup and apply to all tests (Wladimir J. van der Laan)
2015-03-12tests: add a BasicTestingSetup and apply to all testsWladimir J. van der Laan
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.
2015-03-11Merge pull request #5871Wladimir J. van der Laan
3aa0130 test: remove fSkipProofOfWork (Wladimir J. van der Laan) 59bd89f test: Remove UNITTEST params (Wladimir J. van der Laan)
2015-03-11Merge pull request #5749Wladimir J. van der Laan
f754707 Fix - bitcoin-qt usage message (Luca Venturini) 1fdb9fa Help messages correctly formatted (79 chars) (Luca Venturini)
2015-03-11Merge pull request #5864Wladimir J. van der Laan
bb6acff fix possible block db breakage during re-index (Cory Fields)
2015-03-10Fix - bitcoin-qt usage messageLuca Venturini
. 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)
2015-03-10Help messages correctly formatted (79 chars)Luca Venturini
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
2015-03-10fix possible block db breakage during re-indexCory Fields
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.
2015-03-09test: remove fSkipProofOfWorkWladimir J. van der Laan
Not used, and REGTEST already allows creating blocks at the lowerst possible difficulty.
2015-03-09test: Remove UNITTEST paramsWladimir J. van der Laan
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.
2015-03-09tests: change main and wallet tests to BOOST_FIXTURE_TEST_SUITEWladimir J. van der Laan
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
2015-03-09Merge pull request #5852Wladimir J. van der Laan
51598b2 Reinitialize state in between individual unit tests. (Pieter Wuille)
2015-03-09Merge pull request #5442Wladimir J. van der Laan
dca799e Ignore getaddr messages on Outbound connections. (Ivan Pustogarov)
2015-03-09Merge pull request #5776Wladimir J. van der Laan
8517e97 [Qt] rework setNumBlocks to have blockDate as parameter (Philip Kaufmann)
2015-03-09[Qt] rework setNumBlocks to have blockDate as parameterPhilip Kaufmann
- reduces some functional overhead and simplifies the code
2015-03-09Merge pull request #5858Wladimir J. van der Laan
9bbb880 [Qt] fix a issue where "command line options"-action overwrite "Preference"-action (on OSX) (Jonas Schnelli)
2015-03-09Merge pull request #5855Wladimir J. van der Laan
6986643 Run unit tests in different orders (Gavin Andresen)
2015-03-09Merge pull request #5793Wladimir J. van der Laan
6cb4a52 [Qt, Linux] honor current network when creating autostart link (Philip Kaufmann) 9673c35 [Qt, Win] honor current network when creating autostart link (Philip Kaufmann)
2015-03-07Merge pull request #5151Pieter Wuille
eec3713 make CMessageHeader a dumb storage class (Cory Fields)
2015-03-06Merge pull request #5510Wladimir J. van der Laan
a0ae79d Replace CBlockHeader::GetHash with call to SerializeHash (Wladimir J. van der Laan) 62b30f0 Add serialize float/double tests (Wladimir J. van der Laan) 9f4fac9 src/txmempool.cpp: make numEntries a uint32_t (Wladimir J. van der Laan) f4e6487 src/arith_256.cpp: bigendian compatibility (Wladimir J. van der Laan) aac3205 src/netbase.h: Fix endian in CNetAddr serialization (Wladimir J. van der Laan) 01f9c34 src/serialize.h: base serialization level endianness neutrality (Wladimir J. van der Laan) 4e853aa src/script/script.h: endian compatibility for PUSHDATA sizes (Wladimir J. van der Laan) 4f92773 src/primitives/transaction.h: endian compatibility in serialization (Wladimir J. van der Laan) 81aeb28 src/primitives/block.cpp: endian compatibility in GetHash (Wladimir J. van der Laan) dec84ca src/net.cpp: endian compatibility in EndMessage (Wladimir J. van der Laan) 556814e src/main.cpp: endian compatibility in packet checksum check (Wladimir J. van der Laan) 3ca5852 src/hash.cpp: endian compatibility (Wladimir J. van der Laan) 4414f5f build: Endian compatibility (Wladimir J. van der Laan)
2015-03-06Run unit tests in different ordersGavin Andresen
Set the BOOST_TEST_RANDOM environment variable, to run unit tests in different orders for each test in the test matrix that runs tests.
2015-03-06Replace CBlockHeader::GetHash with call to SerializeHashWladimir J. van der Laan
Removes variability between LE and BE. As suggested by @sipa.
2015-03-06Add serialize float/double testsWladimir J. van der Laan
2015-03-06src/txmempool.cpp: make numEntries a uint32_tWladimir J. van der Laan
Don't ever serialize a size_t or long, their sizes are platform dependent.
2015-03-06src/arith_256.cpp: bigendian compatibilityWladimir J. van der Laan
2015-03-06src/netbase.h: Fix endian in CNetAddr serializationWladimir J. van der Laan
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.
2015-03-06src/serialize.h: base serialization level endianness neutralityWladimir J. van der Laan
Serialization type-safety and endianness compatibility.
2015-03-06src/script/script.h: endian compatibility for PUSHDATA sizesWladimir J. van der Laan
2015-03-06src/primitives/transaction.h: endian compatibility in serializationWladimir J. van der Laan
2015-03-06src/primitives/block.cpp: endian compatibility in GetHashWladimir J. van der Laan
2015-03-06src/net.cpp: endian compatibility in EndMessageWladimir J. van der Laan
2015-03-06src/main.cpp: endian compatibility in packet checksum checkWladimir J. van der Laan
2015-03-06src/hash.cpp: endian compatibilityWladimir J. van der Laan
2015-03-06build: Endian compatibilityWladimir J. van der Laan
- Detect endian instead of stopping configure on big-endian - Add `byteswap.h` and `endian.h` header for compatibility with Windows and other operating systems that don't come with them - Update `crypto/common.h` functions to use compat endian header
2015-03-06Merge pull request #5843Wladimir J. van der Laan
ba04c4a Limit message sizes before transfer (Pieter Wuille)
2015-03-06Merge pull request #5813Wladimir J. van der Laan
34e5015 Add unit tests for next difficulty calculations (Ross Nicoll)
2015-03-06Limit message sizes before transferPieter Wuille
This introduces a fixed limit for the size of p2p messages, and enforces it before download.
2015-03-06Add correct bool combiner for net signalsPieter Wuille
2015-03-06[Qt] fix a issue where "command line options"-action overwrite ↵Jonas Schnelli
"Preference"-action (on OSX) - fixes #5800