aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-565/+0
|
* Move network-msg-processing code out of main to its own fileMatt Corallo2016-12-021-44/+4
|
* Merge #9183: Final Preparation for main.cpp SplitPieter Wuille2016-12-011-0/+15
|\ | | | | | | | | | | | | | | 2c8c57e Document cs_main status when calling into PNB or PNBH (Matt Corallo) 58a215c Use ProcessNewBlockHeaders in CMPCTBLOCK processing (Matt Corallo) a8b936d Use exposed ProcessNewBlockHeaders from ProcessMessages (Matt Corallo) 63fd101 Split ::HEADERS processing into two separate cs_main locks (Matt Corallo) 4a6b1f3 Expose AcceptBlockHeader through main.h (Matt Corallo)
| * Document cs_main status when calling into PNB or PNBHMatt Corallo2016-12-011-0/+4
| |
| * Expose AcceptBlockHeader through main.hMatt Corallo2016-11-231-0/+11
| |
* | Make fImporting an std::atomicMatt Corallo2016-11-261-1/+1
|/
* Merge #8930: Move orphan processing to ActivateBestChainPieter Wuille2016-11-231-0/+1
|\ | | | | | | | | | | d2b88f9 Move orphan-conflict removal from main logic into a callback (Matt Corallo) 97e2802 Erase orphans per-transaction instead of per-block (Matt Corallo) ec4525c Move orphan processing to ActivateBestChain (Matt Corallo)
| * Move orphan-conflict removal from main logic into a callbackMatt Corallo2016-11-231-0/+1
| | | | | | | | | | This makes the orphan map a part of net-processing logic instead of main logic.
* | Merge #9179: Set DEFAULT_LIMITFREERELAY = 0 kB/minuteWladimir J. van der Laan2016-11-211-1/+1
|\ \ | |/ |/| | | fa7cc5a Set DEFAULT_LIMITFREERELAY = 0 kB/minute (MarcoFalke)
| * Set DEFAULT_LIMITFREERELAY = 0 kB/minuteMarcoFalke2016-11-181-1/+1
| |
* | Merge #9075: Decouple peer-processing-logic from block-connection-logic (#3)Pieter Wuille2016-11-171-3/+9
|\ \ | |/ |/| | | | | | | ae22357 Replace CValidationState param in ProcessNewBlock with BlockChecked (Matt Corallo) 7c98ce5 Remove pfrom parameter from ProcessNewBlock (Matt Corallo) e2e069d Revert "RPC: Give more details when "generate" fails" (Matt Corallo)
| * Replace CValidationState param in ProcessNewBlock with BlockCheckedMatt Corallo2016-11-091-2/+8
| |
| * Remove pfrom parameter from ProcessNewBlockMatt Corallo2016-11-091-2/+2
| | | | | | | | This further decouples ProcessNewBlock from networking/peer logic.
* | Remove redundant duplicate-input check from CheckTransactionMatt Corallo2016-11-091-1/+1
|/
* Fix compact block handling to not ban if block is invalidSuhas Daftuar2016-11-031-1/+1
|
* Merge #8969: Decouple peer-processing-logic from block-connection-logic (#2)Wladimir J. van der Laan2016-11-031-1/+1
|\ | | | | | | | | | | | | | | f5b960b Move nTimeBestReceived updating into net processing code (Matt Corallo) d8670fb Move all calls to CheckBlockIndex out of net-processing logic (Matt Corallo) d6ea737 Remove network state wipe from UnloadBlockIndex. (Matt Corallo) fc0c24f Move MarkBlockAsReceived out of ProcessNewMessage (Matt Corallo) 65f35eb Move FlushStateToDisk call out of ProcessMessages::TX into ATMP (Matt Corallo)
| * Remove network state wipe from UnloadBlockIndex.Matt Corallo2016-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | UnloadBlockIndex is only used during init if we end up reindexing to clear our block state so that we can start over. However, at that time no connections have been brought up as CConnman hasn't been started yet, so all of the network processing state logic is empty when its called. Additionally, the initialization of the recentRejects set is moved to InitPeerLogic.
* | Merge #9013: Trivial: Explicitly pass const CChainParams& to LoadBlockIndexDB()Wladimir J. van der Laan2016-11-021-1/+1
|\ \ | | | | | | | | | d0b01f3 Explicitly pass const CChainParams& to LoadBlockIndexDB() (Geoffrey Tsui)
| * | Explicitly pass const CChainParams& to LoadBlockIndexDB()Geoffrey Tsui2016-10-251-1/+1
| |/
* | Add DumpMempool and LoadMempoolPieter Wuille2016-10-311-0/+6
| |
* | Add AcceptToMemoryPoolWithTime functionPieter Wuille2016-10-301-0/+4
|/
* RPC: augment getblockchaininfo bip9_softforks datamruddy2016-10-191-1/+2
|
* Merge #8865: Decouple peer-processing-logic from block-connection-logicWladimir J. van der Laan2016-10-181-28/+44
|\ | | | | | | | | | | | | | | | | | | | | a9aec5c Use BlockChecked signal to send reject messages from mapBlockSource (Matt Corallo) 7565e03 Remove SyncWithWallets wrapper function (Matt Corallo) 12ee1fe Always call UpdatedBlockTip, even if blocks were only disconnected (Matt Corallo) f5efa28 Remove CConnman parameter from ProcessNewBlock/ActivateBestChain (Matt Corallo) fef1010 Use CValidationInterface from chain logic to notify peer logic (Matt Corallo) aefcb7b Move net-processing logic definitions together in main.h (Matt Corallo) 0278fb5 Remove duplicate nBlocksEstimate cmp (we already checked IsIBD()) (Matt Corallo) 87e7d72 Make validationinterface.UpdatedBlockTip more verbose (Matt Corallo)
| * Use BlockChecked signal to send reject messages from mapBlockSourceMatt Corallo2016-10-041-0/+1
| |
| * Remove CConnman parameter from ProcessNewBlock/ActivateBestChainMatt Corallo2016-10-041-2/+2
| |
| * Use CValidationInterface from chain logic to notify peer logicMatt Corallo2016-10-041-0/+11
| | | | | | | | | | | | | | This adds a new CValidationInterface subclass, defined in main.h, to receive notifications of UpdatedBlockTip and use that to push blocks to peers, instead of doing it directly from ActivateBestChain.
| * Move net-processing logic definitions together in main.hMatt Corallo2016-10-041-26/+30
| |
* | Merge #6996: Add preciousblock RPCWladimir J. van der Laan2016-10-181-0/+3
|\ \ | | | | | | | | | | | | 5805ac8 Add preciousblock tests (Pieter Wuille) 5127c4f Add preciousblock RPC (Pieter Wuille)
| * | Add preciousblock RPCPieter Wuille2016-08-261-0/+3
| | | | | | | | | | | | Includes a bugfix by Luke-Jr.
* | | Align constant names for maximum compact block / blocktxn depthPieter Wuille2016-10-171-0/+5
| |/ |/|
* | net: Pass CConnman around as neededCory Fields2016-09-081-4/+6
| |
* | Predeclare PrecomputedTransactionData as sturctPieter Wuille2016-09-021-1/+1
| |
* | Merge #8524: Precompute sighashesPieter Wuille2016-09-011-3/+6
|\ \ | | | | | | | | | | | | | | | 35fe039 Rename to PrecomputedTransactionData (Pieter Wuille) ab48c5e Unit test for sighash caching (Nicolas DORIER) d2c5d04 Precompute sighashes (Pieter Wuille)
| * | Rename to PrecomputedTransactionDataPieter Wuille2016-08-261-6/+6
| | |
| * | Precompute sighashesPieter Wuille2016-08-161-3/+6
| | | | | | | | | | | | Original version by Nicolas Dorier. Precomputing version by Pieter Wuille.
* | | Reduce default number of blocks to check at startupPieter Wuille2016-08-271-1/+1
| |/ |/|
* | various typosleijurv2016-08-141-1/+1
|/
* Merge #8413: Trivial: pass Consensus::Params& instead of CChainParams& in ↵Pieter Wuille2016-08-011-1/+1
|\ | | | | | | | | | | 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-1/+1
| | | | | | | | ContextualCheckBlock
* | Merge #8346: Mempool: Use Consensus::CheckTxInputs direclty over ↵Pieter Wuille2016-08-011-0/+13
|\ \ | | | | | | | | | | | | | | | main::CheckInputs a6cc299 Mempool: Use Consensus::CheckTxInputs direclty over main::CheckInputs (Jorge Timón)
| * | Mempool: Use Consensus::CheckTxInputs direclty over main::CheckInputsJorge Timón2016-07-291-0/+13
| | |
* | | Merge #8365: Treat high-sigop transactions as larger rather than rejecting themWladimir J. van der Laan2016-07-261-2/+0
|\ \ \ | |_|/ |/| | | | | 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/+0
| | |
* | | 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
* | Rename "block cost" to "block weight"Suhas Daftuar2016-07-181-1/+1
| |
* | Improve handling of unconnecting headersSuhas Daftuar2016-07-121-0/+3
|/ | | | | | | 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 #8275: Remove bad chain alert partition checkWladimir J. van der Laan2016-07-061-2/+0
|\ | | | | | | ab8be98 Remove bad chain alert partition check (BtcDrak)
| * Remove bad chain alert partition checkBtcDrak2016-06-141-2/+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.
* | [qa] Add GetTransactionSigOpCost unit testsJonas Nick2016-06-221-0/+8
| |