aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6075Wladimir J. van der Laan2015-04-291-0/+18
|\ | | | | | | 9fadf1c Add additional script edge condition tests. (Dave Collins)
| * Add additional script edge condition tests.Dave Collins2015-04-281-0/+18
| | | | | | | | | | | | | | | | | | | | This commit adds several tests to the script_invalid.json data which exercise some edge conditions that are not currently being tested. These are mainly being added to cover several cases a branch coverage analysis of btcd showed are not already being covered, but given more tests of edge conditions are always a good thing, I'm contributing them upstream.
* | Merge pull request #5511Wladimir J. van der Laan2015-04-291-5/+14
|\ \ | | | | | | | | | e9c3215 [Wallet] sort pending wallet transactions before reaccepting (dexX7)
| * | [Wallet] sort pending wallet transactions before reacceptingdexX72015-03-211-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During startup, when adding pending wallet transactions, which spend outputs of other pending wallet transactions, back to the memory pool, and when they are added out of order, it appears as if they are orphans with missing inputs. Those transactions are then rejected and flagged as "conflicting" (= not in the memory pool, not in the block chain). To prevent this, transactions are explicitly sorted.
* | | Merge pull request #6074Wladimir J. van der Laan2015-04-291-1/+1
|\ \ \ | | | | | | | | | | | | d8f4cc3 Correct the PUSHDATA4 minimal encoding test. (Dave Collins)
| * | | Correct the PUSHDATA4 minimal encoding test.Dave Collins2015-04-271-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test which is intended to prove that the script engine is properly rejecting non-minimally encoded PUSHDATA4 data is using the wrong opcode and value. The test is using 0x4f, which is OP_1NEGATE instead of the desired 0x4e, which is OP_PUSHDATA4. Further, the push of data is intended to be 256 bytes, but the value the test is using is 0x00100000 (4096), instead of the desired 0x00010000 (256). This commit fixes both issues. This was found while examining the branch coverage in btcd against only these tests to help find missing branch coverage.
* | | wallet: fix boost::get usage with boost 1.58Cory Fields2015-04-281-1/+1
| | |
* | | Merge pull request #5918Pieter Wuille2015-04-284-4/+49
|\ \ \ | | | | | | | | | | | | f7303f9 Use equivalent PoW for non-main-chain requests (Pieter Wuille)
| * | | Use equivalent PoW for non-main-chain requestsPieter Wuille2015-04-224-4/+49
| | | |
* | | | use const reference as param in ConnectThroughProxy/Socks5Philip Kaufmann2015-04-281-2/+2
| | | | | | | | | | | | | | | | - also ensure code style conformance by replacing bool static with static bool
* | | | Merge pull request #5971Wladimir J. van der Laan2015-04-281-2/+8
|\ \ \ \ | | | | | | | | | | | | | | | 351593b replace absolute sleep with conditional wait (pstratem)
| * | | | replace absolute sleep with conditional waitpstratem2015-04-271-2/+8
| | |/ / | |/| |
* | | | Merge pull request #5662Wladimir J. van der Laan2015-04-281-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | 00dcaf4 Change download logic to allow calling getheaders/getdata on inbound peers (Suhas Daftuar)
| * | | | Change download logic to allow calling getheaders/getdata on inbound peersSuhas Daftuar2015-04-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SendMessages will now call getheaders on both inbound and outbound peers, once the headers chain is close to synced. It will also try downloading blocks from inbound peers once we're out of initial block download (so inbound peers will participate in parallel block fetching for the last day or two of blocks being downloaded).
* | | | | Merge pull request #5199Wladimir J. van der Laan2015-04-287-5/+147
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1ec900a Remove broken+useless lock/unlock log prints (Matt Corallo) 352ed22 Add merkle blocks test (Matt Corallo) 59ed61b Add RPC call to generate and verify merkle blocks (Matt Corallo) 30da90d Add CMerkleBlock constructor for tx set + block and an empty one (Matt Corallo)
| * | | | | Remove broken+useless lock/unlock log printsMatt Corallo2015-04-241-5/+0
| | | | | |
| * | | | | Add RPC call to generate and verify merkle blocksMatt Corallo2015-04-234-0/+119
| | | | | |
| * | | | | Add CMerkleBlock constructor for tx set + block and an empty oneMatt Corallo2015-04-232-0/+28
| | | | | |
* | | | | | qt: translation updateWladimir J. van der Laan2015-04-2872-3383/+9812
| |_|/ / / |/| | | |
* | | | | Merge pull request #5696Wladimir J. van der Laan2015-04-2612-16/+34
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 691161d Consensus: Create consensus/consensus.h with some constants (jtimon)
| * | | | | Consensus: Create consensus/consensus.h with some constantsjtimon2015-04-2012-16/+34
| | |_|/ / | |/| | |
* | | | | Merge pull request #6033Wladimir J. van der Laan2015-04-241-4/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | cd558b4 FreeBSD, OpenBSD thread renaming. (sinetek)
| * | | | | FreeBSD, OpenBSD thread renaming.sinetek2015-04-211-4/+6
| | | | | |
* | | | | | Merge pull request #6028Wladimir J. van der Laan2015-04-245-13/+10
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 1d5b47a nLastTry is only used for addrman entries (Pieter Wuille)
| * | | | | | nLastTry is only used for addrman entriesPieter Wuille2015-04-195-13/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | No need to define it for every CAddress, as it's memory only anyway.
* | | | | | | Merge pull request #6036Wladimir J. van der Laan2015-04-243-4/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f89b092 add rpc test for listunspents support for zero value txouts (Jonas Schnelli) 219953c Show zero value txouts in listunspent. (Gregory Maxwell)
| * | | | | | | Show zero value txouts in listunspent.Gregory Maxwell2015-04-203-4/+4
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's reasonable that automatic coin selection will not pick a zero value txout, but they're actually spendable; and you should know if you have them. Listing also makes them available to tools like dust-b-gone.
* | | | | | | Merge pull request #5863Wladimir J. van der Laan2015-04-245-35/+383
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | | | | | | | | f9ec3f0 Add block pruning functionality (mrbandrews)
| * | | | | | Add block pruning functionalitymrbandrews2015-04-225-35/+383
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a -prune=N option to bitcoind, which if set to N>0 will enable block file pruning. When pruning is enabled, block and undo files will be deleted to try to keep total space used by those files to below the prune target (N, in MB) specified by the user, subject to some constraints: - The last 288 blocks on the main chain are always kept (MIN_BLOCKS_TO_KEEP), - N must be at least 550MB (chosen as a value for the target that could reasonably be met, with some assumptions about block sizes, orphan rates, etc; see comment in main.h), - No blocks are pruned until chainActive is at least 100,000 blocks long (on mainnet; defined separately for mainnet, testnet, and regtest in chainparams as nPruneAfterHeight). This unsets NODE_NETWORK if pruning is enabled. Also included is an RPC test for pruning (pruning.py). Thanks to @rdponticelli for earlier work on this feature; this is based in part off that work.
* | | | | | Merge pull request #6039Wladimir J. van der Laan2015-04-231-0/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 27ce808 tests: Error when setgenerate is used on regtest (Wladimir J. van der Laan)
| * | | | | | tests: Error when setgenerate is used on regtestWladimir J. van der Laan2015-04-211-0/+2
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ever since #5957 there has been the problem that older RPC test cases (as can be found plenty in open pulls) use setgenerate() on regtest, assuming a different interpretation of the arguments. Directly generating a number of blocks has been split off into a new method `generate` - however using `setgenerate` with the previous arguments will result in spawning an unreasonable number of threads, and well, simply not work as expected without clear indication of the error. Add an error to point the user at the right method.
* / / / / / fix and enable bip32 unit testJonas Schnelli2015-04-232-0/+2
|/ / / / / | | | | | | | | | | | | | | | the bip32 unit test was not included in the make process
* | | | | Merge pull request #5911Wladimir J. van der Laan2015-04-206-79/+129
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 6be3562 rpc-tests: Add proxy test (Wladimir J. van der Laan) 67a7949 privacy: Stream isolation for Tor (Wladimir J. van der Laan)
| * | | | | privacy: Stream isolation for TorWladimir J. van der Laan2015-04-176-79/+129
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to Tor's extensions to the SOCKS protocol (https://gitweb.torproject.org/torspec.git/tree/socks-extensions.txt) it is possible to perform stream isolation by providing authentication to the proxy. Each set of credentials will create a new circuit, which makes it harder to correlate connections. This patch adds an option, `-proxyrandomize` (on by default) that randomizes credentials for every outgoing connection, thus creating a new circuit. 2015-03-16 15:29:59 SOCKS5 Sending proxy authentication 3842137544:3256031132
* | | | | Merge pull request #6029Wladimir J. van der Laan2015-04-201-3/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | a784f90 Cap nAttempts penalty at 8 and switch to pow instead of a division loop. (Gregory Maxwell)
| * | | | | Cap nAttempts penalty at 8 and switch to pow instead of a division loop.Gregory Maxwell2015-04-191-3/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On hosts that had spent some time with a failed internet connection their nAttempts penalty was going through the roof (e.g. thousands for all peers) and as a result the connect search was pegging the CPU and failing to get more than a 4 connections after days of running (because it was taking so long per try).
* | | | | Merge pull request #6010Wladimir J. van der Laan2015-04-201-4/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | c1ecee8 Set nSequenceId when a block is fully linked (Suhas Daftuar)
| * | | | | Set nSequenceId when a block is fully linkedSuhas Daftuar2015-04-141-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | Also adds a test to CheckBlockIndex
* | | | | | trivial string change in wallet.cpp (the -> that)Philip Kaufmann2015-04-201-1/+1
| | | | | |
* | | | | | Add operator names to DNS Seed listMichael Ford2015-04-201-5/+5
| | | | | |
* | | | | | ensure consistent header comment naming conventionsPhilip Kaufmann2015-04-2010-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | - BITCOIN_FOLDER_SUBFOLDER_FILENAME_H
* | | | | | Make 'Default: %u' spacing consistent in help messageWladimir J. van der Laan2015-04-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Comment by pryds on Transifex.
* | | | | | [Qt, Trivial] remove two unneeded includes of wallet/db.hPhilip Kaufmann2015-04-202-2/+0
| | | | | |
* | | | | | [Qt, Trivial] fix header groupings + space, intdentation fixesPhilip Kaufmann2015-04-202-6/+6
| | | | | |
* | | | | | [Qt, Trivial] misc minor string changesPhilip Kaufmann2015-04-203-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - write "Bitcoins" uppercase - replace secure/insecure for payment requests with authenticated/unauthenticated - change a translatable string for payment request expiry to match another existing string to only get ONE resulting string to translate
* | | | | | [Trivial] format sync.hPhilip Kaufmann2015-04-201-14/+9
| | | | | |
* | | | | | Use https link to bitcoin.org in Doxygen introMichael Ford2015-04-201-1/+1
| | | | | |
* | | | | | Fix typo in init.cpp interpration/interpretationMichael Ford2015-04-201-1/+1
| | | | | |
* | | | | | Removed '()' where used without contents insideNicolas Benoit2015-04-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This additional patch removes '()' from current function name in LogPrintf output.
* | | | | | Replaced current function names with __func__ in LogPrintf() calls.Nicolas Benoit2015-04-201-17/+17
| | | | | |