aboutsummaryrefslogtreecommitdiff
path: root/src/miner.h
Commit message (Collapse)AuthorAgeFilesLines
* Cherry-pick from Bitcoin repo, 1ec0c0a: small changes for OSX buildMichi Lumin2019-03-251-2/+3
| | | Cherry-pick from Bitcoin repo, 1ec0c0a: adds "const" suffix to several lines in txmempool.h and miner.h to make this build succeed under OSX w. clang++ and Boost lib 1.66+
* Sync mining code from Namecore to resolve unit test failures (#1385)Ross Nicoll2018-09-191-1/+1
|
* Update benchmarking with package statisticsSuhas Daftuar2017-03-301-4/+7
| | | | | Github-Pull: #9959 Rebased-From: 011124a2b278c5a60bad5f1b0b4abbf7ebc95aa0
* Don't require segwit in getblocktemplate for segwit signalling or miningSuhas Daftuar2017-03-161-1/+1
| | | | | | | | | Segwit's version bit will be signalled for all invocations of CreateNewBlock, and not specifying segwit only will cause CreateNewBlock to skip transactions with witness from being selected. Github-Pull: #9955 Rebased-From: abe7b3d3abe10e3554b770f40824174b3b217490
* Introduce -blockmintxfeeAlex Morcos2017-01-041-0/+1
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Merge #8223: [c++11] Use std::unique_ptr for block creation.Wladimir J. van der Laan2016-10-181-1/+1
|\ | | | | | | 9fce062 [c++11] Use std::unique_ptr for block creation. (Daniel Kraft)
| * [c++11] Use std::unique_ptr for block creation.Daniel Kraft2016-06-181-1/+1
| | | | | | | | | | | | CreateNewBlock returns a pointer for which the caller takes ownership. Use std::unique_ptr to make this explicit and simplify handling of these objects in getblocktemplate.
* | Rename "block cost" to "block weight"Suhas Daftuar2016-07-181-2/+2
| |
* | Remove -blockminsize optionSuhas Daftuar2016-06-301-1/+1
| |
* | Remove addScoreTxs()Suhas Daftuar2016-06-301-4/+2
| |
* | Exclude witness transactions in addPackageTxs() pre-segwit activationSuhas Daftuar2016-06-301-2/+5
| |
* | CreateNewBlock: add support for size-accounting to addPackageTxsSuhas Daftuar2016-06-271-1/+1
| | | | | | | | | | Includes a change to not continue to use size-accounting in addScoreTxs or addPackageTxs just because addPriorityTxs() is used.
* | BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-7/+9
| | | | | | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* | BIP141: Commitment structure and deploymentPieter Wuille2016-06-221-0/+2
|/ | | | Includes a fix by Suhas Daftuar and LongShao007
* Use ancestor-feerate based transaction selection for miningSuhas Daftuar2016-06-161-0/+118
| | | | Includes changes by Pieter Wuille
* Refactor CreateNewBlock to be a method of the BlockAssembler classAlex Morcos2016-05-181-1/+55
|
* Remove internal minerLeviathn2016-02-101-5/+0
| | | | | This code removes the internal miner which is only useful on Testnet. This leaves the internal miner that is useful on RegTest intact.
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Constrain constant values to a single location in codeLuke Dashjr2015-11-281-0/+3
|
* Chainparams: Explicit CChainParams arg for miner:Jorge Timón2015-11-111-1/+1
| | | | | | | -BitcoinMiner -CreateNewBlock -GenerateBitcoins -ProcessBlockFound
* Bugfix: If genproclimit is omitted to RPC setgenerate, don't change it; also ↵Luke Dashjr2015-10-011-0/+2
| | | | show correct default in getmininginfo
* Add some const declarations where they are appropriate.Daniel Kraft2015-08-081-1/+1
| | | | | Declare some arguments of functions as "const" pointers where they are not meant to be modified.
* Merge pull request #6177Wladimir J. van der Laan2015-08-061-1/+1
|\ | | | | | | ef8dfe4 Prevent block.nTime from decreasing (Mark Friedenbach)
| * Prevent block.nTime from decreasingMark Friedenbach2015-05-271-1/+1
| | | | | | | | | | | | | | | | Under some circumstances it is possible for there to be a significant, discontinuous jump in a node's clock value. On mining nodes, this can result in block templates which are no longer valid due to time-based nLockTime constraints. UpdateTime() is modified so that it will never decrease a block's nLockTime, thereby preventing such invalidations.
* | detach wallet from minerJonas Schnelli2015-06-301-2/+2
|/
* miner.h: fix clang warning because of class/struct mixJonas Schnelli2015-04-161-1/+1
| | | | - class 'Params' was previously declared as a struct
* Chainparams: Refactor: Remove redundant AllowMinDifficultyBlocks() getterJorge Timón2015-04-151-1/+2
|
* Revert mining changes in #5957Wladimir J. van der Laan2015-04-101-4/+2
| | | | | | | This reverts commit e2edf95cd3f43331843676e49a82830128a95050 6b04508e37c5dd18cec1cd61cc4356bd208aa991 0df67f1f7ab4adfe9f0b3ba6276e737b37826464, except the changes to the RPC tests. A `generate` RPC call is introduced based on the old code.
* Bugfix: make CreateNewBlock return pindexPrevPieter Wuille2015-04-011-2/+2
|
* Introduce separate 'generate' RPC callPieter Wuille2015-04-011-0/+2
|
* Merge pull request #5599Wladimir J. van der Laan2015-01-241-3/+0
|\ | | | | | | 0cc0d8d Get rid of the internal miner's hashmeter (jtimon)
| * Get rid of the internal miner's hashmeterjtimon2015-01-041-3/+0
| |
* | MOVEONLY: Move struct CBlockTemplate to miner.h (from main.h)Luke Dashjr2015-01-121-3/+8
| |
* | Remove declaration of no longer existent CheckWorkWladimir J. van der Laan2015-01-021-2/+0
| | | | | | | | | | | | | | Also make ProcessBlockFound static as it is not used outside miner.cpp. Alternative implementation of #5549.
* | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | | | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* | Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|/
* MOVEONLY: Move void UpdateTime() from pow.o to miner.o (plus fix include ↵jtimon2014-10-291-0/+2
| | | | main.h -> chain.h)
* Switch miner.cpp to use sha2 instead of OpenSSL.Pieter Wuille2014-06-211-4/+0
|
* small formatting, indentation and comment fixesPhilip Kaufmann2014-06-101-1/+2
| | | | - contains zero code changes
* setgenerate creates multiple blocks in -regtest modeGavin Andresen2013-11-221-1/+1
| | | | | | | | | | | | | | | I'm writing some wallet regression tests using -regtest mode, and need to generate an initial multi-hundred-block chain. Repeatedly calling setgenerate to generate one block is slow and doesn't work properly, because block creation happens asynchronously. This adds two features to setgenerate in -regtest mode: 1) Instead of being interpreted as number of threads to start, the third argument is the number of blocks to generate. 2) setgenerate will not return until the block creation threads have created the requested number of blocks.
* Fix struct/class declaration mismatchesGavin Andresen2013-11-111-1/+1
|
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-3/+10
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Bump Year Number to 2013super32013-10-201-1/+1
|
* internal miner: move 2 globals from main to minerPhilip Kaufmann2013-09-251-0/+3
| | | | | | - moves 2 global variables from main.cpp/h to miner.cpp/h - also removes 2 unneded includes in miner.cpp, that come from miner.h already
* miner: constify CreateNewBlock() arg scriptPubKeyInJeff Garzik2013-08-251-1/+1
|
* CreateNewBlock() now takes scriptPubKey argument,Jeff Garzik2013-08-241-1/+2
| | | | | | | rather than a key. CreateNewBlockWithKey() helper is added to restore existing functionality, making this an equivalent-transformation change.
* Move internal miner/block creation to separate miner.cpp module.Jeff Garzik2013-07-311-0/+24
Public functions referenced elsewhere are added to miner.h.