aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-27constify missing catch casesPhilip Kaufmann
- ensure all missing catch cases are constant where possible
2015-10-27Merge pull request #6464Wladimir J. van der Laan
2d8c49d Clean up tx prioritization when conflict mined (Casey Rodarmor)
2015-10-27Merge pull request #6889Wladimir J. van der Laan
0d699fc fix locking issue with new mempool limiting (Jonas Schnelli)
2015-10-26Merge pull request #6881Wladimir J. van der Laan
7bbc7c3 Add option for microsecond precision in debug.log (Suhas Daftuar)
2015-10-26Add option for microsecond precision in debug.logSuhas Daftuar
2015-10-26Merge pull request #6622Wladimir J. van der Laan
17a073a Add RPC test for -maxuploadtarget (Suhas Daftuar) 872fee3 Introduce -maxuploadtarget (Jonas Schnelli)
2015-10-26Merge pull request #6621Wladimir J. van der Laan
e04b0b6 added OS X documentation to doc/init.md (Kevin Cooper) d4aa54c added org.bitcoin.bitcoind.plist for launchd (OS X) (Kevin Cooper)
2015-10-26Merge pull request #6888Wladimir J. van der Laan
143d173 Use BOOST_CHECK_MESSAGE() rather than BOOST_CHECK() in alerts_tests.cpp and initialize strMiscWarning before calling PartitionCheck()." (Eric Lombrozo)
2015-10-26Add RPC test for -maxuploadtargetSuhas Daftuar
2015-10-26Introduce -maxuploadtargetJonas Schnelli
* -maxuploadtarget can be set in MiB * if <limit> - ( time-left-in-24h-cycle / 600 * MAX_BLOCK_SIZE ) has reach, stop serve blocks older than one week and filtered blocks * no action if limit has reached, no guarantee that the target will not be surpassed * add outbound limit informations to rpc getnettotals
2015-10-26fix locking issue with new mempool limitingJonas Schnelli
Current master crashes on OSX with an exception: "boost: mutex lock failed in pthread_mutex_lock: Invalid argument"
2015-10-26Merge pull request #6566Wladimir J. van der Laan
dea8d21 Enable policy enforcing GetMedianTimePast as the end point of lock-time constraints (Mark Friedenbach) 9d55050 Add rules--presently disabled--for using GetMedianTimePast as endpoint for lock-time calculations (Mark Friedenbach)
2015-10-26Merge pull request #6877Wladimir J. van der Laan
10e2eae rpc: Add maxmempool and effective min fee to getmempoolinfo (Wladimir J. van der Laan)
2015-10-26rpc: Add maxmempool and effective min fee to getmempoolinfoWladimir J. van der Laan
2015-10-26Merge pull request #6813Wladimir J. van der Laan
d80e3cb Support gathering of code coverage data for RPC tests (dexX7) e3b5e6c Run extended BitcoinJ tests for coverage based on config (dexX7) 45d4ff0 Add config option to enable extended RPC tests for code coverage (dexX7) 8e3a27b Require Python for RPC tests, when using lcov (dexX7) d425877 Remove coverage and test related files, when cleaning up (dexX7) 4d2a926 Ignore coverage data related and temporary test files (dexX7)
2015-10-26Merge pull request #6878Wladimir J. van der Laan
dca7bd3 doc: Add developer notes about gitignore (Wladimir J. van der Laan)
2015-10-26Merge pull request #6879Wladimir J. van der Laan
ceb2a9c doc: mention BIP65 softfork in bips.md (Wladimir J. van der Laan)
2015-10-26doc: mention BIP65 softfork in bips.mdWladimir J. van der Laan
2015-10-25Use BOOST_CHECK_MESSAGE() rather than BOOST_CHECK() in alerts_tests.cpp and ↵Eric Lombrozo
initialize strMiscWarning before calling PartitionCheck()."
2015-10-24added OS X documentation to doc/init.mdKevin Cooper
2015-10-23Support gathering of code coverage data for RPC testsdexX7
The RPC tests (via `qa/pull-tester/rpc-tests.py`) are now executed, when gathering code coverage data, for example with `make cov`. Generating coverage data requires `lcov`, which can installed with: sudo apt-get install lcov To also use the BitcoinJ tests, get the test tool: TOOL_URL=https://github.com/theuni/bitcoind-comparisontool/raw/master/pull-tests-8c6666f.jar TOOL_HASH=a865332b3827abcde684ab79f5f43c083b0b6a4c97ff5508c79f29fee24f11cd wget $TOOL_URL -O ./share/BitcoindComparisonTool.jar echo "$TOOL_HASH ./share/BitcoindComparisonTool.jar" | shasum --algorithm 256 --check The coverage data can be generated with: ./autogen.sh ./configure --enable-lcov --with-comparison-tool=./share/BitcoindComparisonTool.jar make make cov Optionally the options `--enable-extended-rpc-tests` and `--enable-comparison-tool-reorg-tests` may be used to enable more time consuming tests. It then runs the tests and generates two HTML reports: - test_bitcoin.coverage/index.html - total.coverage/index.html
2015-10-23Run extended BitcoinJ tests for coverage based on configdexX7
The configuration option `--enable-comparison-tool-reorg-tests` may be used to enable extended tests via BitcoinJ also for coverage testing.
2015-10-23Add config option to enable extended RPC tests for code coveragedexX7
When using lcov to gather code coverage data, the configuration option `--enable-extended-rpc-tests` may be used to enable extended RPC tests.
2015-10-23Require Python for RPC tests, when using lcovdexX7
Because Python is (going to be) used to run the RPC tests, when gathering coverage data with lcov, it is explicitly checked, whether Python is really available.
2015-10-23Remove coverage and test related files, when cleaning updexX7
Until now there were quite a few leftovers, and only the coverage related files in `src/` were cleaned, while the ones in the other dirs remained. `qa/tmp/` is related to the BitcoinJ tests, and `cache/` is related to RPC tests.
2015-10-23Ignore coverage data related and temporary test filesdexX7
2015-10-23Enable policy enforcing GetMedianTimePast as the end point of lock-time ↵Mark Friedenbach
constraints Transactions are not allowed in the memory pool or selected for inclusion in a block until their lock times exceed chainActive.Tip()->GetMedianTimePast(). However blocks including transactions which are only mature under the old rules are still accepted; this is *not* the soft-fork required to actually rely on the new constraint in production.
2015-10-23Add rules--presently disabled--for using GetMedianTimePast as endpoint for ↵Mark Friedenbach
lock-time calculations The lock-time code currently uses CBlock::nTime as the cutoff point for time based locked transactions. This has the unfortunate outcome of creating a perverse incentive for miners to lie about the time of a block in order to collect more fees by including transactions that by wall clock determination have not yet matured. By using CBlockIndex::GetMedianTimePast from the prior block instead, the self-interested miner no longer gains from generating blocks with fraudulent timestamps. Users can compensate for this change by simply adding an hour (3600 seconds) to their time-based lock times. If enforced, this would be a soft-fork change. This commit only adds the functionality on an unexecuted code path, without changing the behaviour of Bitcoin Core.
2015-10-23Merge pull request #6873Jeff Garzik
2015-10-23Merge pull request #6856Wladimir J. van der Laan
d3b09f6 Do not allow blockfile pruning during reindex. (Alex Morcos)
2015-10-23doc: Add developer notes about gitignoreWladimir J. van der Laan
- Add developer notes about `.gitignore.` - Remove qt creator specific files from gitignore, to be consistent.
2015-10-23Merge pull request #6351Wladimir J. van der Laan
65ef372 Add BIP65 to getblockchaininfo softforks list (Peter Todd) cde7ab2 Add RPC tests for the CHECKLOCKTIMEVERIFY (BIP65) soft-fork (Peter Todd) 287f54f Add CHECKLOCKTIMEVERIFY (BIP65) soft-fork logic (Peter Todd)
2015-10-23Merge pull request #5936Wladimir J. van der Laan
212bcca Add optional locktime to createrawtransaction (Tom Harding)
2015-10-23Merge pull request #6818Wladimir J. van der Laan
b48da5c script: Remove magic numbers (David Hill)
2015-10-23Merge pull request #6790Wladimir J. van der Laan
8c15f33 [trivial] Update contrib/devtools/README.md (MarcoFalke) 338f62f [devtools] add clang-format.py (MarcoFalke)
2015-10-23Merge pull request #6867Wladimir J. van der Laan
a4e28b3 Set TCP_NODELAY on P2P sockets. (Gregory Maxwell)
2015-10-22leveldbwrapper file rename to dbwrapper.*Jeff Garzik
2015-10-22leveldbwrapper symbol rename: Remove "Level" from class, etc. namesJeff Garzik
2015-10-22leveldbwrapper: Remove unused .Prev(), .SeekToLast() methodsJeff Garzik
Also, trim trailing whitespace.
2015-10-22Set TCP_NODELAY on P2P sockets.Gregory Maxwell
Nagle appears to be a significant contributor to latency now that the static sleeps are gone. Most of our messages are relatively large compared to IP + TCP so I do not expect this to create enormous overhead. This may also reduce traffic burstyness somewhat.
2015-10-22Merge pull request #6848Wladimir J. van der Laan
c6824f8 Add DERSIG transaction test cases (J Ross Nicoll)
2015-10-22Merge pull request #6846Wladimir J. van der Laan
3cb56f3 *: alias -h for --help (Daniel Cousens)
2015-10-22Merge pull request #6854Wladimir J. van der Laan
579b863 devtools: Add security-check.py (Wladimir J. van der Laan)
2015-10-22devtools: Add security-check.pyWladimir J. van der Laan
Perform the following ELF security checks: - PIE: Check for position independent executable (PIE), allowing for address space randomization - NX: Check that no sections are writable and executable (including the stack) - RELRO: Check for read-only relocations, binding at startup - Canary: Check for use of stack canary Also add a check to symbol-check.py that checks that only the subset of allowed libraries is imported (to avoid incompatibilities).
2015-10-22*: alias -h for --helpDaniel Cousens
2015-10-21Merge pull request #6859Wladimir J. van der Laan
41db8c4 http: Restrict maximum size of request line + headers (Wladimir J. van der Laan)
2015-10-21Merge pull request #6722Wladimir J. van der Laan
58254aa Fix stale comment in CTxMemPool::TrimToSize. (Matt Corallo) 2bc5018 Fix comment formatting tabs (Matt Corallo) 8abe0f5 Undo GetMinFee-requires-extra-call-to-hit-0 (Matt Corallo) 9e93640 Drop minRelayTxFee to 1000 (Matt Corallo) 074cb15 Add reasonable test case for mempool trimming (Matt Corallo) d355cf4 Only call TrimToSize once per reorg/blocks disconnect (Matt Corallo) 794a8ce Implement on-the-fly mempool size limitation. (Matt Corallo) e6c7b36 Print mempool size in KB when adding txn (Matt Corallo) 241d607 Add CFeeRate += operator (Matt Corallo) e8bcdce Track (and define) ::minRelayTxFee in CTxMemPool (Matt Corallo) 9c9b66f Fix calling mempool directly, instead of pool, in ATMP (Matt Corallo) 49b6fd5 Add Mempool Expire function to remove old transactions (Pieter Wuille) 78b82f4 Reverse the sort on the mempool's feerate index (Suhas Daftuar)
2015-10-20Merge pull request #6796Wladimir J. van der Laan
c7b36cc Change URLs to https in debian/control (Matt Corallo) e253e83 Update debian/changelog and slight tweak to debian/control (Matt Corallo)
2015-10-20Merge pull request #6235Wladimir J. van der Laan
55a8975 Chainparams: Translations: DRY: options and error strings (Jorge Timón) f3525e2 Chainparams: Replace CBaseChainParams::Network enum with string constants (suggested by Wladimir) (Jorge Timón)
2015-10-20http: Restrict maximum size of request line + headersWladimir J. van der Laan
Prevent memory exhaustion by sending lots of data. Also add a test to `httpbasics.py`. Closes #6425