aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5936Wladimir J. van der Laan2015-10-232-4/+17
|\ | | | | | | 212bcca Add optional locktime to createrawtransaction (Tom Harding)
| * Add optional locktime to createrawtransactionTom Harding2015-08-102-4/+17
| | | | | | | | | | A non-zero locktime also causes input sequences to be set to non-max, activating the locktime.
* | Merge pull request #6818Wladimir J. van der Laan2015-10-233-5/+12
|\ \ | | | | | | | | | b48da5c script: Remove magic numbers (David Hill)
| * | script: Remove magic numbersDavid Hill2015-10-153-5/+12
| | | | | | | | | | | | | | | This adds two new constants, MAX_OPS_PER_SCRIPT and MAX_PUBKEYS_PER_MULTISIG.
* | | Merge pull request #6867Wladimir J. van der Laan2015-10-233-1/+21
|\ \ \ | | | | | | | | | | | | a4e28b3 Set TCP_NODELAY on P2P sockets. (Gregory Maxwell)
| * | | Set TCP_NODELAY on P2P sockets.Gregory Maxwell2015-10-223-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #6848Wladimir J. van der Laan2015-10-222-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | c6824f8 Add DERSIG transaction test cases (J Ross Nicoll)
| * | | | Add DERSIG transaction test casesJ Ross Nicoll2015-10-182-0/+8
| | |/ / | |/| | | | | | | | | | Add test cases for DERSIG flag enforcement against transactions.
* | | | Merge pull request #6846Wladimir J. van der Laan2015-10-224-4/+4
|\ \ \ \ | |_|/ / |/| | | | | | | 3cb56f3 *: alias -h for --help (Daniel Cousens)
| * | | *: alias -h for --helpDaniel Cousens2015-10-224-4/+4
| |/ /
* | | Merge pull request #6859Wladimir J. van der Laan2015-10-211-0/+4
|\ \ \ | | | | | | | | | | | | 41db8c4 http: Restrict maximum size of request line + headers (Wladimir J. van der Laan)
| * | | http: Restrict maximum size of request line + headersWladimir J. van der Laan2015-10-201-0/+4
| |/ / | | | | | | | | | | | | | | | | | | Prevent memory exhaustion by sending lots of data. Also add a test to `httpbasics.py`. Closes #6425
* | | Merge pull request #6722Wladimir J. van der Laan2015-10-2110-57/+361
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | Fix stale comment in CTxMemPool::TrimToSize.Matt Corallo2015-10-191-4/+4
| | | |
| * | | Fix comment formatting tabsMatt Corallo2015-10-141-5/+5
| | | |
| * | | Undo GetMinFee-requires-extra-call-to-hit-0Matt Corallo2015-10-142-2/+3
| | | |
| * | | Drop minRelayTxFee to 1000Matt Corallo2015-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| * | | Add reasonable test case for mempool trimmingMatt Corallo2015-10-132-1/+157
| | | |
| * | | Only call TrimToSize once per reorg/blocks disconnectMatt Corallo2015-10-135-13/+22
| | | |
| * | | Implement on-the-fly mempool size limitation.Matt Corallo2015-10-135-2/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| * | | Print mempool size in KB when adding txnMatt Corallo2015-10-131-2/+2
| | | |
| * | | Add CFeeRate += operatorMatt Corallo2015-10-131-0/+1
| | | |
| * | | Track (and define) ::minRelayTxFee in CTxMemPoolMatt Corallo2015-10-132-3/+11
| | | |
| * | | Fix calling mempool directly, instead of pool, in ATMPMatt Corallo2015-10-133-16/+13
| | | |
| * | | Add Mempool Expire function to remove old transactionsPieter Wuille2015-10-134-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | (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)
| * | | Reverse the sort on the mempool's feerate indexSuhas Daftuar2015-10-132-25/+25
| | | |
* | | | Merge pull request #6235Wladimir J. van der Laan2015-10-2011-90/+79
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 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)
| * | | | Chainparams: Translations: DRY: options and error stringsJorge Timón2015-10-209-51/+37
| | | | | | | | | | | | | | | | | | | | Also remove SelectBaseParamsFromCommandLine and SelectParamsFromCommandLine
| * | | | Chainparams: Replace CBaseChainParams::Network enum with string constants ↵Jorge Timón2015-10-206-45/+48
| | | | | | | | | | | | | | | | | | | | (suggested by Wladimir)
* | | | | Merge pull request #6853Wladimir J. van der Laan2015-10-203-0/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 7801f43 Added fPowNoRetargeting field to Consensus::Params that disables nBits recalculation. (Eric Lombrozo)
| * | | | | Added fPowNoRetargeting field to Consensus::Params that disables nBits ↵Eric Lombrozo2015-10-193-0/+7
| | |_|/ / | |/| | | | | | | | | | | | | recalculation.
* | | | | Merge pull request #6829Wladimir J. van der Laan2015-10-201-1/+10
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | 53b86d0 doc: add comment explaining initial header request (Daniel Kraft)
| * | | | doc: add comment explaining initial header requestDaniel Kraft2015-10-141-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* | | | | Merge pull request #6820Wladimir J. van der Laan2015-10-151-2/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 60af755 build: univalue subdir build fixups (Cory Fields)
| * | | | | build: univalue subdir build fixupsCory Fields2015-10-131-2/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | - Force a rebuild if the headers change - Only build the lib target - Clean univalue on 'make clean'
* / / / / trivial: use constants for db keysDaniel Kraft2015-10-131-4/+4
|/ / / / | | | | | | | | | | | | | | | | Replace literal occurances of the key "prefixes" 'c' and 'b' in txdb.cpp by the respective constants.
* | | | Merge pull request #6777Wladimir J. van der Laan2015-10-134-54/+185
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | | Refer to obfuscate_key via pointer in peripheral CLevelDB classesJames O'Beirne2015-10-093-14/+14
| | | | | | | | | | | | | | | | | | | | cc @sipa
| * | | | Add tests for gettxoutsetinfo, CLevelDBBatch, CLevelDBIteratorJames O'Beirne2015-10-091-1/+80
| | | | | | | | | | | | | | | | | | | | Thanks @dexX7.
| * | | | Handle obfuscation in CLevelDBIteratorJames O'Beirne2015-10-083-8/+15
| | | | |
| * | | | Encapsulate CLevelDB iterators cleanlyPieter Wuille2015-10-083-44/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/leveldb.cpp src/leveldb.h src/txdb.cpp
* | | | | Merge pull request #6798Wladimir J. van der Laan2015-10-131-0/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 700f52e Clarification of unit test build instructions. (Eric Lombrozo)
| * | | | | Clarification of unit test build instructions.Eric Lombrozo2015-10-101-0/+2
| | | | | |
* | | | | | Merge pull request #6788Wladimir J. van der Laan2015-10-137-20/+16
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | 3b1279f build: match upstream build change (Cory Fields) 313e7f5 Squashed 'src/univalue/' changes from 87d9045..5839ac3 (MarcoFalke)
| * | | | | build: match upstream build changeCory Fields2015-10-091-1/+1
| | | | | |
| * | | | | Merge commit '313e7f5c89d6e72e06efe9255089765b4c5815fe' into HEADMarcoFalke2015-10-096-19/+15
| |/ / / /
* | | | | tests: update transaction_tests for new dust thresholdWladimir J. van der Laan2015-10-101-1/+1
| | | | |
* | | | | Bump minrelaytxfee defaultWladimir J. van der Laan2015-10-091-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To bridge the time until a dynamic method for determining this fee is merged. This is especially aimed at the stable releases (0.10, 0.11) because full mempool limiting, as will be in 0.12, is too invasive and risky to backport.
* | | | Merge pull request #6779Wladimir J. van der Laan2015-10-091-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | b22692c build: Make use of ZMQ_CFLAGS (Cory Fields)
| * | | | build: Make use of ZMQ_CFLAGSCory Fields2015-10-081-1/+1
| | | | |