aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Added feeler connections increasing good addrs in the tried table.Ethan Heilman2016-08-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests if addresses are online or offline by briefly connecting to them. These short lived connections are referred to as feeler connections. Feeler connections are designed to increase the number of fresh online addresses in tried by selecting and connecting to addresses in new. One feeler connection is attempted on average once every two minutes. This change was suggested as Countermeasure 4 in Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman, Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report 2015/263. March 2015.
* | | | | Merge #8548: [wallet] Use __func__ to get function name for output printingWladimir J. van der Laan2016-08-221-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | fa785d1 Use __func__ to get function name for output printing (MarcoFalke)
| * | | | Use __func__ to get function name for output printingMarcoFalke2016-08-191-1/+1
| | | | |
* | | | | Merge #8505: Trivial: Fix typos in various filesWladimir J. van der Laan2016-08-171-3/+3
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | 1aacfc2 various typos (leijurv)
| * | | | various typosleijurv2016-08-141-3/+3
| | |_|/ | |/| |
* / | | Reduce cs_main locks during ConnectTip/SyncWithWalletsJonas Schnelli2016-08-121-17/+23
|/ / /
* | | Merge #8392: Fix several node initialization issuesWladimir J. van der Laan2016-08-041-2/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | 9d4eb9a Do diskspace check before import thread is started (Pieter Wuille) aa59f2e Add extra message to avoid a long 'Loading banlist' (Pieter Wuille) 0fd2a33 Use a signal to continue init after genesis activation (Pieter Wuille)
| * | | Use a signal to continue init after genesis activationPieter Wuille2016-07-301-2/+0
| | | |
* | | | Merge #8391: Consensus: Remove ISMWladimir J. van der Laan2016-08-041-31/+13
|\ \ \ \ | |_|/ / |/| | | | | | | 122786d Consensus: Remove ISM (NicolasDorier)
| * | | Consensus: Remove ISMNicolasDorier2016-07-231-31/+13
| | | |
* | | | Merge #8413: Trivial: pass Consensus::Params& instead of CChainParams& in ↵Pieter Wuille2016-08-011-4/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | ContextualCheckBlock c8664ee Trivial: pass Consensus::Params& instead of CChainParams& in ContextualCheckBlock (Jorge Timón)
| * | | | Trivial: pass Consensus::Params& instead of CChainParams& in ↵Jorge Timón2016-07-271-4/+4
| |/ / / | | | | | | | | | | | | ContextualCheckBlock
* | / / net: Ignore `notfound` P2P messagesWladimir J. van der Laan2016-07-291-0/+5
| |/ / |/| |
* | | Merge #8274: util: Update tinyformatWladimir J. van der Laan2016-07-291-1/+1
|\ \ \ | | | | | | | | | | | | | | | | a5072a7 util: Remove zero-argument versions of LogPrint and error (Wladimir J. van der Laan) 695041e util: Update tinyformat (Wladimir J. van der Laan)
| * | | util: Remove zero-argument versions of LogPrint and errorWladimir J. van der Laan2016-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes in tinyformat, recently imported from upstream have made the zero-argument versions of formatting functions unnecessary. Remove them. This is a slight semantic change: `%` characters in the zero-argument call are now regarded and need to be escaped. As for as I know, the only use of this is in `main.cpp`.
* | | | Merge #8408: Prevent fingerprinting, disk-DoS with compact blocksWladimir J. van der Laan2016-07-291-2/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 1d06e49 Ignore CMPCTBLOCK messages for pruned blocks (Suhas Daftuar) 1de2a46 Ignore GETBLOCKTXN requests for unknown blocks (Suhas Daftuar)
| * | | | Ignore CMPCTBLOCK messages for pruned blocksSuhas Daftuar2016-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Also ignores CMPCTBLOCK announcements that have too little work. This is to prevent disk-exhaustion DoS.
| * | | | Ignore GETBLOCKTXN requests for unknown blocksSuhas Daftuar2016-07-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Don't disconnect peers, or else we leak information that could be used for fingerprinting.
* | | | | Merge #8348: Trivial: Segwit: Don't call IsWitnessEnabled from ↵Wladimir J. van der Laan2016-07-281-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | ContextualCheckBlock 38c4c8b Trivial: Segwit: Don't call IsWitnessEnabled from ContextualCheckBlock (Jorge Timón)
| * | | | Trivial: Segwit: Don't call IsWitnessEnabled from ContextualCheckBlockJorge Timón2016-07-171-1/+1
| | | | |
* | | | | Merge #8381: Make witness v0 outputs non-standardWladimir J. van der Laan2016-07-261-2/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | c59c434 qa: Add test for standardness of segwit v0 outputs (Suhas Daftuar) 1ffaff2 Make witness v0 outputs non-standard before segwit activation (Johnson Lau)
| * | | | | Make witness v0 outputs non-standard before segwit activationJohnson Lau2016-07-221-2/+3
| | |_|_|/ | |/| | |
* | | | | Merge #8365: Treat high-sigop transactions as larger rather than rejecting themWladimir J. van der Laan2016-07-261-2/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | ab942c1 Treat high-sigop transactions as larger rather than rejecting them (Pieter Wuille)
| * | | | Treat high-sigop transactions as larger rather than rejecting themPieter Wuille2016-07-191-2/+1
| |/ / /
* | | | Merge #8347: Trivial: Make CBlockIndex param const in ↵Wladimir J. van der Laan2016-07-211-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | ContextualCheckBlockHeader and ContextualCheckBlock 6f3d616 Trivial: Make CBlockIndex param const in ContextualCheckBlockHeader and ContextualCheckBlock (Jorge Timón)
| * | | | Trivial: Make CBlockIndex param const in ContextualCheckBlockHeader and ↵Jorge Timón2016-07-171-2/+2
| | |/ / | |/| | | | | | | | | | ContextualCheckBlock
* | | | Consensus: Remove calls to error() from ContextualCheckBlockNicolasDorier2016-07-211-4/+4
| | | |
* | | | Merge #8342: Consensus: Trivial transform BOOST_FOREACH into for loopWladimir J. van der Laan2016-07-211-9/+9
|\ \ \ \ | |_|/ / |/| | | | | | | a3e1984 Consensus: Trivial transform BOOST_FOREACH into for loop (NicolasDorier)
| * | | Consensus: Trivial transform BOOST_FOREACH into for loopNicolasDorier2016-07-161-9/+9
| |/ /
* | | Rename "block cost" to "block weight"Suhas Daftuar2016-07-181-6/+6
| | |
* | | Merge #8305: Improve handling of unconnecting headersWladimir J. van der Laan2016-07-181-1/+37
|\ \ \ | |/ / |/| | | | | | | | e91cf4b Add test for handling of unconnecting headers (Suhas Daftuar) 96fa953 Improve handling of unconnecting headers (Suhas Daftuar)
| * | Improve handling of unconnecting headersSuhas Daftuar2016-07-121-1/+37
| | | | | | | | | | | | | | | | | | | | | When processing a headers message that looks like a block announcement, send peer a getheaders if the headers message won't connect. Apply DoS points after too many consecutive unconnecting headers messages.
* | | Merge #8312: Fix mempool DoS vulnerability from malleated transactionsWladimir J. van der Laan2016-07-141-5/+5
|\ \ \ | | | | | | | | | | | | | | | | 46c9620 Test that unnecessary witnesses can't be used for mempool DoS (Suhas Daftuar) bb66a11 Fix DoS vulnerability in mempool acceptance (Suhas Daftuar)
| * | | Fix DoS vulnerability in mempool acceptanceSuhas Daftuar2016-07-071-5/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | Moves the IsStandard check to happen after the premature-witness check, so that adding a witness to a transaction can't prevent mempool acceptance. Note that this doesn't address the broader category of potential mempool DoS issues that affect transactions after segwit activation.
* | | Merge #8271: [bugfix] Do not send witnesses in cmpctblockWladimir J. van der Laan2016-07-141-1/+1
|\ \ \ | |/ / |/| | | | | 252675e Do not send witnesses in cmpctblock (Pieter Wuille)
| * | Do not send witnesses in cmpctblockPieter Wuille2016-06-261-1/+1
| |/
* | Merge #8275: Remove bad chain alert partition checkWladimir J. van der Laan2016-07-061-62/+0
|\ \ | | | | | | | | | ab8be98 Remove bad chain alert partition check (BtcDrak)
| * | Remove bad chain alert partition checkBtcDrak2016-06-141-62/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | As per meeting 2016-03-31 https://bitcoincore.org/en/meetings/2016/03/31/#bad-chain-alerts The partition checker was producing huge number of false-positives and was disabled in 0.12.1 on the understanding it would either be fixed in 0.13 or removed entirely from master if not.
* | | Revert "net: Avoid duplicate getheaders requests." PR #8054Gregory Maxwell2016-07-051-8/+1
| |/ |/| | | | | | | | | This reverts commit f93c2a1b7ee912f0651ebb4c8a5eca220e434f4a. This can cause synchronization to get stuck.
* | [qa] Add rpc test for segwitAlex Morcos2016-06-221-5/+10
| | | | | | | | | | | | | | Amended by Pieter Wuille to use multisig 1-of-1 for P2WSH tests, and BIP9 based switchover logic. Fixes and py3 conversion by Marco Falke.
* | Do not use compact blocks when segwit is enabledPieter Wuille2016-06-221-2/+6
| |
* | Add rewind logic to deal with post-fork software updatesPieter Wuille2016-06-221-19/+113
| | | | | | | | Includes logic for dealing with pruning by Suhas Daftuar.
* | BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-27/+51
| | | | | | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* | Refactor script validation to observe amountsPieter Wuille2016-06-221-1/+1
| | | | | | | | This is a preparation for BIP143 support.
* | BIP144: Handshake and relay (receiver side)Pieter Wuille2016-06-221-8/+36
| | | | | | | | | | | | Service bit logic by Nicolas Dorier. Only download blocks from witness peers after fork.
* | BIP141: Commitment structure and deploymentPieter Wuille2016-06-221-8/+138
| | | | | | | | Includes a fix by Suhas Daftuar and LongShao007
* | BIP141: Witness programPieter Wuille2016-06-221-1/+2
| |
* | BIP144: Serialization, hashes, relay (sender side)Pieter Wuille2016-06-221-12/+16
| | | | | | | | | | | | Contains refactorings by Eric Lombrozo. Contains fixup by Nicolas Dorier. Contains cleanup of CInv::GetCommand by Alex Morcos
* | Merge #8068: Compact BlocksWladimir J. van der Laan2016-06-221-41/+349
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 48efec8 Fix some minor compact block issues that came up in review (Matt Corallo) ccd06b9 Elaborate bucket size math (Pieter Wuille) 0d4cb48 Use vTxHashes to optimize InitData significantly (Matt Corallo) 8119026 Provide a flat list of txid/terators to txn in CTxMemPool (Matt Corallo) 678ee97 Add BIP 152 to implemented BIPs list (Matt Corallo) 56ba516 Add reconstruction debug logging (Matt Corallo) 2f34a2e Get our "best three" peers to announce blocks using cmpctblocks (Matt Corallo) 927f8ee Add ability to fetch CNode by NodeId (Matt Corallo) d25cd3e Add receiver-side protocol implementation for CMPCTBLOCK stuff (Matt Corallo) 9c837d5 Add sender-side protocol implementation for CMPCTBLOCK stuff (Matt Corallo) 00c4078 Add protocol messages for short-ids blocks (Matt Corallo) e3b2222 Add some blockencodings tests (Matt Corallo) f4f8f14 Add TestMemPoolEntryHelper::FromTx version for CTransaction (Matt Corallo) 85ad31e Add partial-block block encodings API (Matt Corallo) 5249dac Add COMPACTSIZE wrapper similar to VARINT for serialization (Matt Corallo) cbda71c Move context-required checks from CheckBlockHeader to Contextual... (Matt Corallo) 7c29ec9 If AcceptBlockHeader returns true, pindex will be set. (Matt Corallo) 96806c3 Stop trimming when mapTx is empty (Pieter Wuille)
| * | Fix some minor compact block issues that came up in reviewMatt Corallo2016-06-211-3/+3
| | |