Wladimir J. van der Laan
d482c0a7b2
Merge pull request #6896
...
e9e6163
Make -checkmempool=1 not fail through int32 overflow (Pieter Wuille)
2015-10-31 00:38:31 +01:00
Wladimir J. van der Laan
725539ea03
Merge pull request #6863
...
0be387a
unittest: fix test for null tx input (Daniel Kraft)
2015-10-29 13:40:33 +01:00
Wladimir J. van der Laan
b28c229324
Merge pull request #6899
...
a83f3c2
Add explicit shared_ptr constructor due to C++11 error (Bob McElrath)
2015-10-29 13:39:56 +01:00
Wladimir J. van der Laan
b2ce2c1f0f
Merge pull request #6870
...
040c0ea
Init: Cleanup error and warning strings (MarcoFalke)
6782f58
[trivial] Latest config.guess (MarcoFalke)
bf68191
[trivial] rpcnet: fix typo (MarcoFalke)
95f4291
[trivial] Rewrite help text for feature enabled by default (MarcoFalke)
2015-10-29 13:30:42 +01:00
Bob McElrath
a83f3c2426
Add explicit shared_ptr constructor due to C++11 error
2015-10-28 22:25:32 -04:00
MarcoFalke
040c0ea093
Init: Cleanup error and warning strings
...
Also update doc/translation_strings_policy.md
2015-10-28 22:11:43 +01:00
Pieter Wuille
e9e616323b
Make -checkmempool=1 not fail through int32 overflow
2015-10-28 03:07:59 +01:00
Pieter Wuille
8daffe227b
Merge pull request #6891
...
ad5aae1
constify missing catch cases (Philip Kaufmann)
2015-10-28 02:34:09 +01:00
Pieter Wuille
4764f5db9d
Merge pull request #6892
...
214de7e
[Trivial] ensure minimal header conventions (Philip Kaufmann)
2015-10-28 02:30:31 +01:00
Pieter Wuille
e06c14fb59
Merge pull request #6776
...
ab1f560
Support -checkmempool=N, which runs checks on average once every N transactions (Pieter Wuille)
2015-10-28 02:25:06 +01:00
Pieter Wuille
298e040bca
Fix chainstate serialized_size computation
2015-10-28 01:05:32 +01:00
Daniel Kraft
0be387a536
unittest: fix test for null tx input
...
Update the unittest that is meant to catch a transaction that is invalid
because it has a null input. The old test failed not because of that
but because it was considered a coinbase with too large script. This is
already checked with a different test, though.
The new test is *not* a coinbase since it has two inputs, but one of
them is null. This really checks the corresponding code path in
CheckTransaction.
2015-10-27 20:11:56 +01:00
Philip Kaufmann
214de7e54c
[Trivial] ensure minimal header conventions
...
- ensure header namespaces and end comments are correct
- add missing header end comments
- ensure minimal formatting (add newlines etc.)
2015-10-27 17:44:13 +01:00
Philip Kaufmann
ad5aae15b4
constify missing catch cases
...
- ensure all missing catch cases are constant where possible
2015-10-27 17:39:42 +01:00
Wladimir J. van der Laan
8f3b3cdee4
Merge pull request #6464
...
2d8c49d
Clean up tx prioritization when conflict mined (Casey Rodarmor)
2015-10-27 11:58:35 +01:00
Wladimir J. van der Laan
38369dda32
Merge pull request #6889
...
0d699fc
fix locking issue with new mempool limiting (Jonas Schnelli)
2015-10-27 08:48:12 +01:00
Wladimir J. van der Laan
2b625510d3
Merge pull request #6881
...
7bbc7c3
Add option for microsecond precision in debug.log (Suhas Daftuar)
2015-10-26 21:04:41 +01:00
Suhas Daftuar
7bbc7c314f
Add option for microsecond precision in debug.log
2015-10-26 15:05:37 -04:00
Wladimir J. van der Laan
7939164d89
Merge pull request #6622
...
17a073a
Add RPC test for -maxuploadtarget (Suhas Daftuar)
872fee3
Introduce -maxuploadtarget (Jonas Schnelli)
2015-10-26 17:54:00 +01:00
Wladimir J. van der Laan
c8322ff7f7
Merge pull request #6888
...
143d173
Use BOOST_CHECK_MESSAGE() rather than BOOST_CHECK() in alerts_tests.cpp and initialize strMiscWarning before calling PartitionCheck()." (Eric Lombrozo)
2015-10-26 17:25:19 +01:00
Jonas Schnelli
872fee3fcc
Introduce -maxuploadtarget
...
* -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-26 15:37:30 +01:00
Jonas Schnelli
0d699fc821
fix locking issue with new mempool limiting
...
Current master crashes on OSX with an exception: "boost: mutex lock failed in pthread_mutex_lock: Invalid argument"
2015-10-26 14:58:17 +01:00
Wladimir J. van der Laan
ff057f41aa
Merge pull request #6566
...
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-26 11:32:46 +01:00
Wladimir J. van der Laan
26f5b34e88
Merge pull request #6877
...
10e2eae
rpc: Add maxmempool and effective min fee to getmempoolinfo (Wladimir J. van der Laan)
2015-10-26 10:07:04 +01:00
Wladimir J. van der Laan
10e2eae35c
rpc: Add maxmempool and effective min fee to getmempoolinfo
2015-10-26 09:59:07 +01:00
Eric Lombrozo
143d173969
Use BOOST_CHECK_MESSAGE() rather than BOOST_CHECK() in alerts_tests.cpp and initialize strMiscWarning before calling PartitionCheck()."
2015-10-25 05:47:02 -04:00
dexX7
d425877557
Remove coverage and test related files, when cleaning up
...
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-23 22:09:14 +02:00
Mark Friedenbach
dea8d21fc6
Enable policy enforcing GetMedianTimePast as the end point of lock-time 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-23 09:02:24 -07:00
Mark Friedenbach
9d55050773
Add rules--presently disabled--for using GetMedianTimePast as endpoint for 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-23 09:02:24 -07:00
Jeff Garzik
46f74379b8
Merge pull request #6873
2015-10-23 09:01:22 -04:00
Wladimir J. van der Laan
c719cefc41
Merge pull request #6856
...
d3b09f6
Do not allow blockfile pruning during reindex. (Alex Morcos)
2015-10-23 14:41:30 +02:00
Wladimir J. van der Laan
2a1090d4f5
Merge pull request #6351
...
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-23 13:33:13 +02:00
Wladimir J. van der Laan
bf7c1958d1
Merge pull request #5936
...
212bcca
Add optional locktime to createrawtransaction (Tom Harding)
2015-10-23 12:47:19 +02:00
Wladimir J. van der Laan
923c5e93a9
Merge pull request #6818
...
b48da5c
script: Remove magic numbers (David Hill)
2015-10-23 11:50:10 +02:00
Wladimir J. van der Laan
b2b173acab
Merge pull request #6867
...
a4e28b3
Set TCP_NODELAY on P2P sockets. (Gregory Maxwell)
2015-10-23 09:29:49 +02:00
MarcoFalke
bf681918d7
[trivial] rpcnet: fix typo
2015-10-23 08:35:05 +02:00
Jeff Garzik
3795e8152b
leveldbwrapper file rename to dbwrapper.*
2015-10-22 21:33:06 -04:00
Jeff Garzik
8587b23038
leveldbwrapper symbol rename: Remove "Level" from class, etc. names
2015-10-22 21:02:20 -04:00
Jeff Garzik
6ec4b7eb20
leveldbwrapper: Remove unused .Prev(), .SeekToLast() methods
...
Also, trim trailing whitespace.
2015-10-22 20:49:02 -04:00
Gregory Maxwell
a4e28b3d1e
Set TCP_NODELAY on P2P sockets.
...
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-22 17:57:48 +00:00
Wladimir J. van der Laan
f2c869aef2
Merge pull request #6848
...
c6824f8
Add DERSIG transaction test cases (J Ross Nicoll)
2015-10-22 18:02:17 +02:00
Wladimir J. van der Laan
2cd020d054
Merge pull request #6846
...
3cb56f3
*: alias -h for --help (Daniel Cousens)
2015-10-22 17:53:07 +02:00
Daniel Cousens
3cb56f3778
*: alias -h for --help
2015-10-22 00:07:30 +11:00
Wladimir J. van der Laan
0fbfc5106c
Merge pull request #6859
...
41db8c4
http: Restrict maximum size of request line + headers (Wladimir J. van der Laan)
2015-10-21 11:19:25 +02:00
Wladimir J. van der Laan
3b20e239c6
Merge pull request #6722
...
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-21 08:50:16 +02:00
Pieter Wuille
ab1f56072a
Support -checkmempool=N, which runs checks on average once every N transactions
2015-10-20 18:59:08 +02:00
Wladimir J. van der Laan
e26a3f6713
Merge pull request #6235
...
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-20 17:06:28 +02:00
Wladimir J. van der Laan
41db8c4733
http: Restrict maximum size of request line + headers
...
Prevent memory exhaustion by sending lots of data.
Also add a test to `httpbasics.py`.
Closes #6425
2015-10-20 14:31:40 +02:00
Jorge Timón
55a89751fa
Chainparams: Translations: DRY: options and error strings
...
Also remove SelectBaseParamsFromCommandLine and SelectParamsFromCommandLine
2015-10-20 14:28:43 +02:00
Jorge Timón
f3525e24e3
Chainparams: Replace CBaseChainParams::Network enum with string constants (suggested by Wladimir)
2015-10-20 14:22:44 +02:00