aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
Commit message (Collapse)AuthorAgeFilesLines
...
* | Replace GetLow64 with GetCheapHashWladimir J. van der Laan2015-01-051-1/+1
|/
* MOVEONLY: CBlockUndo from main.h to undo.hjtimon2014-12-271-16/+0
|
* Decouple CBlockUndo from CDiskBlockPosjtimon2014-12-271-3/+0
|
* Decouple miner.o and txmempool.o from CTxUndojtimon2014-12-271-1/+1
|
* remove max orphan blocks config parameter since it is no longer functionalJameson Lopp2014-12-211-2/+0
|
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Merge pull request #5181Wladimir J. van der Laan2014-12-051-138/+0
|\ | | | | | | afd4b94 Move CMerkleBlock and CPartialMerkleTree to their own file (Matt Corallo)
| * Move CMerkleBlock and CPartialMerkleTree to their own fileMatt Corallo2014-12-051-138/+0
| |
* | Merge pull request #5394Wladimir J. van der Laan2014-12-041-3/+9
|\ \ | |/ |/| | | 307f7d4 Report script evaluation failures in log and reject messages (Pieter Wuille)
| * Report script evaluation failures in log and reject messagesPieter Wuille2014-12-021-3/+9
| |
* | Merge pull request #5306Wladimir J. van der Laan2014-12-031-2/+2
|\ \ | | | | | | | | | d227011 MOVEONLY: core/ -> primitives/ (Luke Dashjr)
| * | MOVEONLY: core/ -> primitives/Luke Dashjr2014-12-031-2/+2
| |/
* / Make comments in main an init doxygen compatibleMichael Ford2014-12-021-85/+99
|/ | | | | Fix typos where appropriate Update license/copyright
* Merge pull request #5316Wladimir J. van der Laan2014-11-281-0/+6
|\ | | | | | | | | | | | | f86a24b Move `setmocktime` to hidden category (Wladimir J. van der Laan) bd9aebf Introduce a hidden category (Pieter Wuille) 0dd06b2 Delay writing block indexes in invalidate/reconsider (Pieter Wuille) 9b0a8d3 Add 'invalidateblock' and 'reconsiderblock' RPC commands. (Pieter Wuille)
| * Add 'invalidateblock' and 'reconsiderblock' RPC commands.Pieter Wuille2014-11-261-0/+6
| | | | | | | | | | These can be used for testing reorganizations or for manual intervention in case of chain forks.
* | Remove -printblock, -printblocktree, and -printblockindexPieter Wuille2014-11-271-2/+0
|/
* Improve chainstate/blockindex disk writing policyPieter Wuille2014-11-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | There are 3 pieces of data that are maintained on disk. The actual block and undo data, the block index (which can refer to positions on disk), and the chainstate (which refers to the best block hash). Earlier, there was no guarantee that blocks were written to disk before block index entries referring to them were written. This commit introduces dirty flags for block index data, and delays writing entries until the actual block data is flushed. With this stricter ordering in writes, it is now safe to not always flush after every block, so there is no need for the IsInitialBlockDownload() check there - instead we just write whenever enough time has passed or the cache size grows too large. Also updating the wallet's best known block is delayed until this is done, otherwise the wallet may end up referring to an unknown block. In addition, only do a write inside the block processing loop if necessary (because of cache size exceeded). Otherwise, move the writing to a point after processing is done, after relaying.
* TestBlockValidity function for CBlock proposals (used by CreateNewBlock)Luke Dashjr2014-11-181-1/+4
|
* Abstract context-dependent block checking from acceptanceLuke Dashjr2014-11-181-0/+4
|
* Merge pull request #5186Wladimir J. van der Laan2014-11-031-9/+7
|\ | | | | | | 771d500 minor cleanup: include orders, end comments etc. (Philip Kaufmann)
| * minor cleanup: include orders, end comments etc.Philip Kaufmann2014-10-311-9/+7
| | | | | | | | - no code changes
* | Merge pull request #5106Wladimir J. van der Laan2014-11-031-2/+11
|\ \ | |/ |/| | | | | | | | | 1bea2bb Rename ProcessBlock to ProcessNewBlock to indicate change of behaviour, and document it (Luke Dashjr) d29a291 Rename RPC_TRANSACTION_* errors to RPC_VERIFY_* and use RPC_VERIFY_ERROR for submitblock (Luke Dashjr) f877aaa Bugfix: submitblock: Use a temporary CValidationState to determine accurately the outcome of ProcessBlock, now that it no longer does the full block validity check (Luke Dashjr) 24e8896 Add CValidationInterface::BlockChecked notification (Luke Dashjr)
| * Rename ProcessBlock to ProcessNewBlock to indicate change of behaviour, and ↵Luke Dashjr2014-10-281-2/+10
| | | | | | | | document it
| * Add CValidationInterface::BlockChecked notificationLuke Dashjr2014-10-211-0/+1
| |
* | MOVEONLY: core.o -> core/block.ojtimon2014-10-271-1/+1
| |
* | MOVEONLY: separate CTxUndo out of corejtimon2014-10-271-1/+1
| |
* | MOVEONLY: Separate CTransaction and dependencies from corejtimon2014-10-271-0/+1
| |
* | MOVEONLY: Move CFeeRate and Amount constants to amount.ojtimon2014-10-271-0/+1
| |
* | Merge pull request #4981Wladimir J. van der Laan2014-10-221-0/+1
|\ \ | |/ |/| | | | | | | | | 85c579e script: add a slew of includes all around and drop includes from script.h (Cory Fields) db8eb54 script: move ToString and ValueString out of the header (Cory Fields) e9ca428 script: add ToByteVector() for converting anything with begin/end (Cory Fields) 066e2a1 script: move CScriptID to standard.h and add a ctor for creating them from CScripts (Cory Fields)
| * script: add a slew of includes all around and drop includes from script.hCory Fields2014-10-171-0/+1
| | | | | | | | Lots of files ended up with indirect includes from script.h.
* | Rename CWalletInterface to CValidationInterfacePieter Wuille2014-10-201-14/+14
| | | | | | | | It's useful for much more than wallets.
* | RPC additions after headers-firstPieter Wuille2014-10-141-0/+5
| |
* | Headers-first synchronizationPieter Wuille2014-10-141-9/+12
|/ | | | | | | | | | | | | | | Many changes: * Do not use 'getblocks', but 'getheaders', and use it to build a headers tree. * Blocks are fetched in parallel from all available outbound peers, using a limited moving window. When one peer stalls the movement of the window, it is disconnected. * No more orphan blocks. At all. We only ever request a block for which we have verified the headers, and store it to disk immediately. This means that a disk-fill attack would require PoW. * Require protocol version 31800 for every peer (released in december 2010). * No more syncnode (we sync from everyone we can, though limited to 1 during initial *headers* sync). * Introduce some extra named constants, comments and asserts.
* Merge pull request #5036Wladimir J. van der Laan2014-10-061-1/+1
|\ | | | | | | | | eb6b3b2 Update English translation (Wladimir J. van der Laan) b9b2e3f Don't translate state.Abort() messages (Wladimir J. van der Laan)
| * Don't translate state.Abort() messagesWladimir J. van der Laan2014-10-021-1/+1
| | | | | | | | | | | | | | | | There is only one message passed to AbortNode() that makes sense to translate to the user specifically: Disk space is low. For the others show a generic message and refer to debug.log for details. Reduces the number of confusing jargon translation messages.
* | Replace SCRIPT_VERIFY_NOCACHE by flag directly to checkerPieter Wuille2014-10-021-6/+7
| |
* | Make signature cache optionalPieter Wuille2014-10-021-0/+1
|/
* Merge pull request #4234Wladimir J. van der Laan2014-10-011-3/+3
|\ | | | | | | | | c122f55 qt: Register CAmount metatype (Wladimir J. van der Laan) a372168 Use a typedef for monetary values (Mark Friedenbach)
| * Use a typedef for monetary valuesMark Friedenbach2014-09-261-3/+3
| |
* | Merge pull request #4796Pieter Wuille2014-09-291-382/+3
|\ \ | |/ |/| | | | | e8b5f0d Move CBlockIndex, CChain and related code out of main (jtimon) 6db83db Decouple CChain from mapBlockIndex (jtimon)
| * Move CBlockIndex, CChain and related code out of mainjtimon2014-09-081-380/+1
| |
| * Decouple CChain from mapBlockIndexjtimon2014-09-081-3/+3
| |
* | Merge pull request #4555Wladimir J. van der Laan2014-09-171-7/+3
|\ \ | | | | | | | | | | | | | | | | | | 6dcfda2 Don't pass nHashType to EvalScript nor CheckSig (jtimon) 2b23a87 Don't pass nHashType to VerifyScript (jtimon) ce3649fb Remove CScriptCheck::nHashType (was always 0) (jtimon) 358562b Remove unused function main:VerifySignature (jtimon)
| * | Remove CScriptCheck::nHashType (was always 0)jtimon2014-09-121-5/+3
| | |
| * | Remove unused function main:VerifySignaturejtimon2014-09-121-2/+0
| | |
* | | Merge pull request #4875Pieter Wuille2014-09-161-0/+2
|\ \ \ | |/ / |/| | | | | | | | f7e3637 Eliminate extra assignment (Suhas Daftuar) ec7eb0f When reindexing check for file before trying to open (refactored) (Suhas Daftuar)
| * | When reindexing check for file before trying to open (refactored)Suhas Daftuar2014-09-101-0/+2
| | |
* | | Store fewer orphan tx by default, add -maxorphantx optionGavin Andresen2014-09-101-2/+2
| |/ |/| | | | | | | | | | | | | | | | | There is no reason to store thousands of orphan transactions; normally an orphan's parents will either be broadcast or mined reasonably quickly. This pull drops the maximum number of orphans from 10,000 down to 100, and adds a command-line option (-maxorphantx) that is just like -maxorphanblocks to override the default.
* | Separate script/standardjtimon2014-09-081-1/+2
| |
* | Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)jtimon2014-09-081-1/+1
|/