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
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
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
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
Wladimir J. van der Laan
c834f56869
Merge pull request #6853
...
7801f43
Added fPowNoRetargeting field to Consensus::Params that disables nBits recalculation. (Eric Lombrozo)
2015-10-20 12:07:44 +02:00
Wladimir J. van der Laan
488f8517a1
Merge pull request #6829
...
53b86d0
doc: add comment explaining initial header request (Daniel Kraft)
2015-10-20 12:06:44 +02:00
Alex Morcos
d3b09f6bac
Do not allow blockfile pruning during reindex.
...
Also clarify startup message.
2015-10-19 14:43:04 -04:00
Eric Lombrozo
7801f4387d
Added fPowNoRetargeting field to Consensus::Params that disables nBits recalculation.
2015-10-19 14:25:21 -04:00
Matt Corallo
58254aa3bc
Fix stale comment in CTxMemPool::TrimToSize.
2015-10-19 02:41:52 -07:00
J Ross Nicoll
c6824f8a90
Add DERSIG transaction test cases
...
Add test cases for DERSIG flag enforcement against transactions.
2015-10-18 17:27:41 +01:00
David Hill
b48da5c189
script: Remove magic numbers
...
This adds two new constants, MAX_OPS_PER_SCRIPT and
MAX_PUBKEYS_PER_MULTISIG.
2015-10-15 09:48:15 -04:00
Wladimir J. van der Laan
d78a880900
Merge pull request #6820
...
60af755
build: univalue subdir build fixups (Cory Fields)
2015-10-15 12:55:25 +02:00
Matt Corallo
2bc50187ee
Fix comment formatting tabs
2015-10-14 12:46:20 -07:00
Matt Corallo
8abe0f5658
Undo GetMinFee-requires-extra-call-to-hit-0
2015-10-14 12:44:18 -07:00
Daniel Kraft
53b86d0de5
doc: add comment explaining initial header request
...
Add a comment that explains why the initial "getheader" requests are
made starting from the block preceding the currently best one.
Thanks to sdaftuar for the explanation!
2015-10-14 20:42:49 +02:00
Daniel Kraft
f8f2aceadd
trivial: use constants for db keys
...
Replace literal occurances of the key "prefixes" 'c' and 'b' in txdb.cpp
by the respective constants.
2015-10-13 20:25:57 +02:00
Cory Fields
60af755e56
build: univalue subdir build fixups
...
- Force a rebuild if the headers change
- Only build the lib target
- Clean univalue on 'make clean'
2015-10-13 13:40:49 -04:00
Wladimir J. van der Laan
9caaf6ed22
Merge pull request #6777
...
dcd8e27
Refer to obfuscate_key via pointer in peripheral CLevelDB classes (James O'Beirne)
1488506
Add tests for gettxoutsetinfo, CLevelDBBatch, CLevelDBIterator (James O'Beirne)
0fdf8c8
Handle obfuscation in CLevelDBIterator (James O'Beirne)
3499ce1
Encapsulate CLevelDB iterators cleanly (Pieter Wuille)
2015-10-13 12:23:45 +02:00
Wladimir J. van der Laan
01f74999e3
Merge pull request #6798
...
700f52e
Clarification of unit test build instructions. (Eric Lombrozo)
2015-10-13 11:35:24 +02:00
Wladimir J. van der Laan
97bee37d4c
Merge pull request #6788
...
3b1279f
build: match upstream build change (Cory Fields)
313e7f5
Squashed 'src/univalue/' changes from 87d9045..5839ac3 (MarcoFalke)
2015-10-13 10:54:31 +02:00
Matt Corallo
9e93640be6
Drop minRelayTxFee to 1000
...
There is no exact science to setting this parameter, but 5000
(just over 1 US cent at the time of writing) is higher than the
cost to relay a transaction around the network (the new benchmark
due to mempool limiting).
2015-10-13 01:39:38 -07:00
Matt Corallo
074cb155c2
Add reasonable test case for mempool trimming
2015-10-13 01:39:38 -07:00
Matt Corallo
d355cf4420
Only call TrimToSize once per reorg/blocks disconnect
2015-10-13 01:39:38 -07:00
Matt Corallo
794a8cec5d
Implement on-the-fly mempool size limitation.
...
After each transaction which is added to mempool, we first call
Expire() to remove old transactions, then throwing away the
lowest-feerate transactions.
After throwing away transactions by feerate, we set the minimum
relay fee to the maximum fee transaction-and-dependant-set we
removed, plus the default minimum relay fee.
After the next block is received, the minimum relay fee is allowed
to decrease exponentially. Its halflife defaults to 12 hours, but
is decreased to 6 hours if the mempool is smaller than half its
maximum size, and 3 hours if the mempool is smaller than a quarter
its maximum size.
The minimum -maxmempool size is 40*-limitdescendantsize, as it is
easy for an attacker to play games with the cheapest
-limitdescendantsize transactions. -maxmempool defaults to 300MB.
This disables high-priority transaction relay when the min relay
fee adjustment is >0 (ie when the mempool is full). When the relay
fee adjustment drops below the default minimum relay fee / 2 it is
set to 0 (re-enabling priority-based free relay).
2015-10-13 01:39:27 -07:00
Matt Corallo
e6c7b362ab
Print mempool size in KB when adding txn
2015-10-13 01:05:43 -07:00
Matt Corallo
241d6078ba
Add CFeeRate += operator
2015-10-13 01:04:39 -07:00
Matt Corallo
e8bcdce8a2
Track (and define) ::minRelayTxFee in CTxMemPool
2015-10-13 01:00:19 -07:00
Matt Corallo
9c9b66f771
Fix calling mempool directly, instead of pool, in ATMP
2015-10-13 00:44:03 -07:00
Pieter Wuille
49b6fd5663
Add Mempool Expire function to remove old transactions
...
(note the 9x multiplier on (void*)'s for CTxMemPool::DynamicMemoryUsage
was accidentally introduced in 5add7a7
but should have waited for this
commit which adds the extra index)
2015-10-13 00:44:03 -07:00
Suhas Daftuar
78b82f4a16
Reverse the sort on the mempool's feerate index
2015-10-13 00:44:03 -07:00
Wladimir J. van der Laan
4e2efb3c5f
tests: update transaction_tests for new dust threshold
2015-10-10 14:49:38 +02:00
Eric Lombrozo
700f52e0f6
Clarification of unit test build instructions.
2015-10-10 06:46:35 -04:00
James O'Beirne
dcd8e27c65
Refer to obfuscate_key via pointer in peripheral CLevelDB classes
...
cc @sipa
2015-10-09 10:56:48 -07:00
James O'Beirne
1488506872
Add tests for gettxoutsetinfo, CLevelDBBatch, CLevelDBIterator
...
Thanks @dexX7.
2015-10-09 10:56:39 -07:00