aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * Allow setting minrelaytxfee to 0Alex Morcos2017-03-031-2/+3
| | | | | | | | Setting minrelaytxfee to 0 will allow all transactions regardless of fee to enter your mempool until it reaches its size limit. However now that mempool limiting is governed by a separate incrementalrelay fee, it is an unnecessary restriction to prevent a minrelaytxfee of 0.
| * No longer allow "free" transactionsAlex Morcos2017-03-031-3/+1
| | | | | | | | | | | | Remove -limitfreerelay and always enforce minRelayTxFee in the mempool (except from disconnected blocks) Remove -relaypriority, the option was only used for the ability to allow free transactions to be relayed regardless of their priority. Both notions no longer apply.
| * [debug] Change -printpriority optionAlex Morcos2017-02-271-1/+1
| | | | | | | | -printpriority output is now changed to only show the fee rate and hash of transactions included in a block by the mining code.
| * [mining] Remove -blockprioritysize.Alex Morcos2017-02-271-1/+0
| | | | | | | | Remove ability of mining code to fill part of a block with transactions sorted by coin age.
* | Use CScheduler for wallet flushing, remove ThreadFlushWalletDBMatt Corallo2017-03-061-1/+1
| |
* | Merge #9910: Docs: correct and elaborate -rpcbind docWladimir J. van der Laan2017-03-031-1/+1
|\ \ | | | | | | | | | | | | | | | e5b449c Docs: correct and elaborate -rpcbind doc (Ian Kelling) Tree-SHA512: e1cdaa32f7248f304d463e3f37d7d5da23ee0e506bd453420b87f4cc9c704cc30214e41c9266294890d65f2ee270f9355f38b542e8c01452637bdbba8273c755
| * | Docs: correct and elaborate -rpcbind docIan Kelling2017-03-031-1/+1
| | | | | | | | | | | | The default was incorrect unless -rpcallowip was also specified.
* | | Merge #9774: Enable host lookups for -proxy and -onion parametersWladimir J. van der Laan2017-03-031-7/+16
|\ \ \ | |/ / |/| | | | | | | | | | | f36bdf0 Enable host lookups for -proxy and -onion parameters (Johnathan Corgan) Tree-SHA512: 40f5ef3954721333e58d34653874d9f6ac5426c817762d132838f3b6f968ca5ca05aa56d02fd742cb5a8dc040f1a28dad6d54f667342eceba62fb2af18b58fc0
| * | Enable host lookups for -proxy and -onion parametersJohnathan Corgan2017-02-201-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Extends -dns parameter (via fNameLookup) to control these two new parameters in addition to -addnode, -connect, and -seednode * Moves fNameLookup assignment earlier as needed * Changes -proxy and -onion to use Lookup() instead of LookupNumeric()
* | | Merge #9821: util: Specific GetOSRandom for Linux/FreeBSD/OpenBSDWladimir J. van der Laan2017-03-011-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7e6dcd9 random: Add fallback if getrandom syscall not available (Wladimir J. van der Laan) 7cad849 sanity: Move OS random to sanity check function (Wladimir J. van der Laan) aa09ccb squashme: comment that NUM_OS_RANDOM_BYTES should not be changed lightly (Wladimir J. van der Laan) 224e6eb util: Specific GetOSRandom for Linux/FreeBSD/OpenBSD (Wladimir J. van der Laan) Tree-SHA512: 9fd408b1316c69de86674f342339b2f89192fd317c8c036b5df4320f828fa263c7966146bfc1904c51137ee4a26e4cb0f560b2cd05e18cde4d808b9b92ad15c4
| * | | sanity: Move OS random to sanity check functionWladimir J. van der Laan2017-02-221-0/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | Move the OS random test to a sanity check function that is called every time bitcoind is initialized. Keep `src/test/random_tests.cpp` for the case that later random tests are added, and keep a rudimentary test that just calls the sanity check.
* | | Merge #9822: Remove block file location upgrade codeWladimir J. van der Laan2017-02-281-26/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | 4b183d3 Remove block file location upgrade code (Marko Bencun) Tree-SHA512: fac1fce95341e0df645c08c7e794195b22b54df08826aa8728f2f97aede1e42f724f8133781b97f836d4a392d044d08c846bce471a6b478582014f8be501a712
| * | | Remove block file location upgrade codeMarko Bencun2017-02-221-26/+1
| |/ / | | | | | | | | | | | | | | | | | | An effort to reduce the size of AppInitMain(). The removed code upgrades the location of the block files when upgrading to 0.8. 0.8 seems to be the oldest version still in use.
* | / don't throw std::bad_alloc when out of memory. Instead, terminate immediatelyCory Fields2017-02-251-0/+16
| |/ |/|
* | Trivial: fix comments referencing AppInit2Marko Bencun2017-02-241-5/+1
|/ | | | | It was refactored into multiple functions in 0cc8b6bc44bea29e24fa4e13d8a9bbe4f1483680.
* [trivial] Fix recently introduced typos in commentspracticalswift2017-02-141-1/+1
|
* Merge #9625: Increase minimum debug.log size to 10MB after shrink.Wladimir J. van der Laan2017-02-011-1/+4
|\ | | | | | | 29fb311 Increase minimum debug.log size to 10MB after shrink. (Alex Morcos)
| * Increase minimum debug.log size to 10MB after shrink.Alex Morcos2017-01-241-1/+4
| |
* | Merge #9644: [refactor] Remove using namespace <xxx> from src/MarcoFalke2017-01-301-16/+13
|\ \ | | | | | | | | | b7b48c8 Refactor: Remove using namespace <xxx> from src/*.cpp. (Karl-Johan Alm)
| * | Refactor: Remove using namespace <xxx> from src/*.cpp.Karl-Johan Alm2017-01-271-16/+13
| |/
* / [trivial] Fix typos in commentspracticalswift2017-01-271-1/+1
|/
* Merge #9499: Use recent-rejects, orphans, and recently-replaced txn for ↵Wladimir J. van der Laan2017-01-191-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | compact-block-reconstruction c594580 Add braces around AddToCompactExtraTransactions (Matt Corallo) 1ccfe9b Clarify comment about mempool/extra conflicts (Matt Corallo) fac4c78 Make PartiallyDownloadedBlock::InitData's second param const (Matt Corallo) b55b416 Add extra_count lower bound to compact reconstruction debug print (Matt Corallo) 863edb4 Consider all (<100k memusage) txn for compact-block-extra-txn cache (Matt Corallo) 7f8c8ca Consider all orphan txn for compact-block-extra-txn cache (Matt Corallo) 93380c5 Use replaced transactions in compact block reconstruction (Matt Corallo) 1531652 Keep shared_ptrs to recently-replaced txn for compact blocks (Matt Corallo) edded80 Make ATMP optionally return the CTransactionRefs it replaced (Matt Corallo) c735540 Move ORPHAN constants from validation.h to net_processing.h (Matt Corallo)
| * Keep shared_ptrs to recently-replaced txn for compact blocksMatt Corallo2017-01-101-0/+1
| |
* | Merge #9484: Introduce assumevalid setting to skip validation presumed valid ↵Pieter Wuille2017-01-161-2/+9
|\ \ | | | | | | | | | | | | | | | | | | scripts. 7b5e3fe Add assumevalid testcase (John Newbery) e440ac7 Introduce assumevalid setting to skip presumed valid scripts. (Gregory Maxwell)
| * | Introduce assumevalid setting to skip presumed valid scripts.Gregory Maxwell2017-01-131-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This disentangles the script validation skipping from checkpoints. A new option is introduced "assumevalid" which specifies a block whos ancestors we assume all have valid scriptsigs and so we do not check them when they are also burried under the best header by two weeks worth of work. Unlike checkpoints this has no influence on consensus unless you set it to a block with an invalid history. Because of this it can be easily be updated without risk of influencing the network consensus. This results in a massive IBD speedup. This approach was independently recommended by Peter Todd and Luke-Jr since POW based signature skipping (see PR#9180) does not have the verifiable properties of a specific hash and may create bad incentives. The downside is that, like checkpoints, the defaults bitrot and older releases will sync slower. On the plus side users can provide their own value here, and if they set it to something crazy all that will happen is more time will be spend validating signatures. Checkblocks and checklevel are also moved to the hidden debug options: Especially now that checkblocks has a low default there is little need to change these settings, and users frequently misunderstand them as influencing security or IBD speed. By hiding them we offset the space added by this new option.
* | | Merge #9380: Separate different uses of minimum feesWladimir J. van der Laan2017-01-161-1/+37
|\ \ \ | |/ / |/| | | | | | | | | | | eb30d1a Introduce -dustrelayfee (Alex Morcos) 7b1add3 Introduce -incrementalrelayfee (Alex Morcos) daec955 Introduce -blockmintxfee (Alex Morcos)
| * | Introduce -dustrelayfeeAlex Morcos2017-01-161-0/+11
| | |
| * | Introduce -incrementalrelayfeeAlex Morcos2017-01-161-1/+16
| | |
| * | Introduce -blockmintxfeeAlex Morcos2017-01-041-0/+10
| | |
* | | Add pruneblockchain RPC to enable manual block file pruning.mrbandrews2017-01-101-6/+10
| |/ |/|
* | Merge #9408: Allow shutdown during LoadMempool, dump only when necessaryPieter Wuille2017-01-061-1/+4
|\ \ | | | | | | | | | | | | 325e400 [Qt] Do proper shutdown (Jonas Schnelli) 9479f8d Allow shutdown during LoadMempool, dump only when necessary (Jonas Schnelli)
| * | Allow shutdown during LoadMempool, dump only when necessaryJonas Schnelli2016-12-231-1/+4
| | |
* | | Merge #9319: Break addnode out from the outbound connection limits.Pieter Wuille2017-01-061-4/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | 032ba3f RPC help documentation for addnode peerinfo. (Gregory Maxwell) 90f13e1 Add release notes for addnode changes. (Gregory Maxwell) 50bd12c Break addnode out from the outbound connection limits. (Gregory Maxwell)
| * | | Break addnode out from the outbound connection limits.Gregory Maxwell2017-01-051-4/+5
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously addnodes were in competition with outbound connections for access to the eight outbound slots. One result of this is that frequently a node with several addnode configured peers would end up connected to none of them, because while the addnode loop was in its two minute sleep the automatic connection logic would fill any free slots with random peers. This is particularly unwelcome to users trying to maintain links to specific nodes for fast block relay or purposes. Another result is that a group of nine or more nodes which are have addnode configured towards each other can become partitioned from the public network. This commit introduces a new limit of eight connections just for addnode peers which is not subject to any of the other connection limitations (including maxconnections). The choice of eight is sufficient so that under no condition would a user find themselves connected to fewer addnoded peers than previously. It is also low enough that users who are confused about the significance of more connections and have gotten too copy-and-paste happy will not consume more than twice the slot usage of a typical user. Any additional load on the network resulting from this will likely be offset by a reduction in users applying even more wasteful workaround for the prior behavior. The retry delays are reduced to avoid nodes sitting around without their added peers up, but are still sufficient to prevent overly aggressive repeated connections. The reduced delays also make the system much more responsive to the addnode RPC. Ban-disconnects are also exempted for peers added via addnode since the outbound addnode logic ignores bans. Previously it would ban an addnode then immediately reconnect to it. A minor change was also made to CSemaphoreGrant so that it is possible to re-acquire via an object whos grant was moved.
* | | Merge #8610: Share unused mempool memory with coincachePieter Wuille2017-01-051-1/+2
|\ \ \ | |/ / |/| | | | | ba3cecf Share unused mempool memory with coincache (Pieter Wuille)
| * | Share unused mempool memory with coincachePieter Wuille2016-12-221-1/+2
| |/ | | | | | | | | | | | | | | | | If the mempool is not completely full, treat the difference between the maximum size and the actual usage as available for the coin cache. This also changes the early flush trigger from (usage > 0.9 * space) to (usage > 0.9 * space && usage > space - 100MB). This means we're not permanently leaving 10% of the space unused when the space is large.
* | Merge #9401: Make rpcauth help message clearer, add example in example .confMarcoFalke2017-01-041-1/+1
|\ \ | | | | | | | | | 0513c70 Make rpcauth help message clearer, add example in example .conf (Gregory Sanders)
| * | Make rpcauth help message clearer, add example in example .confGregory Sanders2016-12-211-1/+1
| |/
* | Merge #9289: net: drop boost::thread_groupWladimir J. van der Laan2017-01-041-1/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 67ee4ec net: misc header cleanups (Cory Fields) 8b3159e net: make proxy receives interruptible (Cory Fields) 5cb0fce net: remove thread_interrupted catch (Cory Fields) d3d7056 net: make net processing interruptible (Cory Fields) 0985052 net: make net interruptible (Cory Fields) 799df91 net: add CThreadInterrupt and InterruptibleSleep (Cory Fields) 7325b15 net: a few small cleanups before replacing boost threads (Cory Fields)
| * | net: make net interruptibleCory Fields2017-01-031-1/+3
| | | | | | | | | | | | | | | Also now that net threads are interruptible, switch them to use std threads/binds/mutexes/condvars.
* | | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
|/ / | | | | | | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* | Un-expose mapArgs from utils.hMatt Corallo2016-12-241-2/+2
| |
* | Get rid of mapArgs direct access in ZMQ constructionMatt Corallo2016-12-241-1/+1
| |
* | Introduce (and use) an IsArgSet accessor methodMatt Corallo2016-12-231-10/+10
| |
* | Fix non-const mapMultiArgs[] access after init.Matt Corallo2016-12-231-26/+34
|/ | | | | Swap mapMultiArgs for a const-reference to a _mapMultiArgs which is only accessed in util.cpp
* Merge #9236: Fix races for strMiscWarning and fLargeWork*Found, make QT ↵Wladimir J. van der Laan2016-12-191-0/+1
|\ | | | | | | | | | | | | | | runawayException use GetWarnings 749be01 Move GetWarnings() into its own file. (Gregory Maxwell) e3ba0ef Eliminate data races for strMiscWarning and fLargeWork*Found. (Gregory Maxwell) c63198f Make QT runawayException call GetWarnings instead of directly access strMiscWarning. (Gregory Maxwell)
| * Move GetWarnings() into its own file.Gregory Maxwell2016-12-031-0/+1
| |
* | Merge #9322: [qa] Don't set unknown rpcserialversionWladimir J. van der Laan2016-12-151-1/+4
|\ \ | | | | | | | | | | | | fa615d3 [qa] Don't set unknown rpcserialversion (MarcoFalke) 80d073c Complain when unknown rpcserialversion is specified (Pieter Wuille)
| * | Complain when unknown rpcserialversion is specifiedPieter Wuille2016-12-051-1/+4
| | |
* | | Merge #8895: Better SigCache ImplementationPieter Wuille2016-12-141-0/+2
|\ \ \ | |/ / |/| | | | | | | | 67dac4e Add unit tests for the CuckooCache (Jeremy Rubin) c9e69fb Add CuckooCache implementation and replace the sigcache map_type with it (Jeremy Rubin)