aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
Commit message (Collapse)AuthorAgeFilesLines
* move rpc* to rpc/Daniel Cousens2016-01-211-800/+0
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Constrain constant values to a single location in codeLuke Dashjr2015-11-281-2/+2
|
* Merge pull request #6134Wladimir J. van der Laan2015-11-271-0/+72
|\ | | | | | | | | | | | | | | | | | | e304432 Pass reference to estimateSmartFee and cleanup whitespace (Suhas Daftuar) 56106a3 Expose RPC calls for estimatesmart functions (Alex Morcos) e93a236 add estimateSmartFee to the unit test (Alex Morcos) 6303051 EstimateSmart functions consider mempool min fee (Alex Morcos) f22ac4a Increase success threshold for fee estimation to 95% (Alex Morcos) 4fe2823 Change wallet and GUI code to use new smart fee estimation calls. (Alex Morcos) 22eca7d Add smart fee estimation functions (Alex Morcos)
| * Expose RPC calls for estimatesmart functionsAlex Morcos2015-11-161-0/+72
| | | | | | | | Also add testing for estimatesmartfee in smartfees.py
* | Chainparams: Explicit CChainParams arg for miner:Jorge Timón2015-11-111-2/+2
| | | | | | | | | | | | | | -BitcoinMiner -CreateNewBlock -GenerateBitcoins -ProcessBlockFound
* | Chainparams: Explicit CChainParams arg for main (pre miner):Jorge Timón2015-11-111-3/+3
|/ | | | | -ProcessNewBlock -TestBlockValidity
* Bugfix: If genproclimit is omitted to RPC setgenerate, don't change it; also ↵Luke Dashjr2015-10-011-2/+2
| | | | show correct default in getmininginfo
* [Univalue] add univalue over subtreeJonas Schnelli2015-10-011-1/+1
| | | | similar to secp256k1 include and compile univalue over a subtree
* [trivial] Fix rpc message "help generate"MarcoFalke2015-09-121-0/+1
|
* Update RPC generate help for numblocks to include requiredIan T2015-09-031-1/+1
| | | The `generate` RPC has no default `numblocks` and a numeric value is required.
* Fix crash when mining with empty keypool.Daniel Kraft2015-08-181-1/+5
| | | | | | | Since the introduction of the ScriptForMining callback, the mining functions (setgenerate and generate) crash with an assertion failure (due to a NULL pointer script returned) if the keypool is empty. Fix this by giving a proper error.
* TRIVIAL: Missing includesJorge Timón2015-07-231-0/+3
|
* Reformat help text of estimatefee and estimatepriority to match other help ↵Pavel Janík2015-07-201-12/+10
| | | | texts.
* add CReserveScript to allow modular script keeping/returningJonas Schnelli2015-07-011-3/+7
| | | | - use one CReserveScript per mining thread
* detach wallet from minerJonas Schnelli2015-06-301-17/+10
|
* Merge pull request #6206Wladimir J. van der Laan2015-06-051-2/+1
|\ | | | | | | a9ac95c use const references where appropriate (Philip Kaufmann)
| * use const references where appropriatePhilip Kaufmann2015-06-041-2/+1
| |
* | fix rpcmining/getblocktemplate univalue transition logic errorJonas Schnelli2015-06-041-1/+1
|/
* Remove JSON Spirit wrapper, remove JSON Spirit leftoversJonas Schnelli2015-06-041-16/+15
| | | | | | - implement find_value() function for UniValue - replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper - remove JSON Spirit sources
* remove JSON Spirit UniValue wrapperJonas Schnelli2015-06-041-13/+13
|
* expicit set UniValue type to avoid empty valuesJonas Schnelli2015-06-041-9/+9
|
* extend conversion to UniValueJonas Schnelli2015-06-041-2/+2
|
* Convert tree to using univalue. Eliminate all json_spirit uses.Jeff Garzik2015-06-041-10/+9
|
* Be stricter in processing unrequested blocksSuhas Daftuar2015-06-021-2/+2
| | | | | AcceptBlock will no longer process an unrequested block, unless it has not been previously processed and has more work than chainActive.Tip()
* Consensus: MOVEONLY: Move CValidationState from main consensus/validationjtimon2015-05-151-0/+1
|
* remove unneeded incude of wallet/db.h from rpcmining.cppPhilip Kaufmann2015-05-141-1/+0
|
* Merge pull request #5696Wladimir J. van der Laan2015-04-261-1/+2
|\ | | | | | | 691161d Consensus: Create consensus/consensus.h with some constants (jtimon)
| * Consensus: Create consensus/consensus.h with some constantsjtimon2015-04-201-1/+2
| |
* | tests: Error when setgenerate is used on regtestWladimir J. van der Laan2015-04-211-0/+2
|/ | | | | | | | | | | | Ever since #5957 there has been the problem that older RPC test cases (as can be found plenty in open pulls) use setgenerate() on regtest, assuming a different interpretation of the arguments. Directly generating a number of blocks has been split off into a new method `generate` - however using `setgenerate` with the previous arguments will result in spawning an unreasonable number of threads, and well, simply not work as expected without clear indication of the error. Add an error to point the user at the right method.
* Chainparams: Refactor: Remove redundant AllowMinDifficultyBlocks() getterJorge Timón2015-04-151-1/+1
|
* Merge pull request #5999Wladimir J. van der Laan2015-04-151-1/+1
|\ | | | | | | e8e8904 Chainparams: Cleanup: Delete CChainParams getters to attributes from Consensus::Params (Jorge Timón)
| * Chainparams: Cleanup: Delete CChainParams getters to attributes from ↵Jorge Timón2015-04-131-1/+1
| | | | | | | | Consensus::Params
* | Fix missing lock in submitblockMatt Corallo2015-04-131-9/+14
|/
* Revert mining changes in #5957Wladimir J. van der Laan2015-04-101-7/+26
| | | | | | | 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-49/+42
|
* Consensus: Refactor: Decouple pow.o from chainparams.oJorge Timón2015-03-261-1/+1
|
* Fix --disable-wallet build after merge of #5681Wladimir J. van der Laan2015-03-241-0/+1
|
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-2/+2
| | | | could once be renamed from /src/wallet to /src/legacywallet.
* Rename Interval() to DifficultyAdjustmentInterval()Shaul Kfir2015-02-171-1/+1
|
* Merge pull request #5739Wladimir J. van der Laan2015-02-091-1/+1
|\ | | | | | | f4b2078 Replace difficulty readjustment blocks with Interval() (Shaul Kfir)
| * Replace difficulty readjustment blocks with Interval()Shaul Kfir2015-02-021-1/+1
| |
* | fix getblocktemplate lock issueJonas Schnelli2015-02-041-8/+0
| | | | | | | | getblocktemplate didn't have a wallet lock before #5711 and IMO there is no need for LEAVE/ENTER critical section.
* | Removed main.h dependency from rpcserver.cppEric Lombrozo2015-01-281-2/+9
|/ | | | | | | | Rebased by @laanwj: - update for RPC methods added since 84d13ee: setmocktime, invalidateblock, reconsiderblock. Only the first, setmocktime, required a change, the other two are thread safe.
* Merge pull request #5599Wladimir J. van der Laan2015-01-241-20/+0
|\ | | | | | | 0cc0d8d Get rid of the internal miner's hashmeter (jtimon)
| * Get rid of the internal miner's hashmeterjtimon2015-01-041-20/+0
| |
* | Use arith_uint256 where necessaryWladimir J. van der Laan2015-01-051-2/+2
| | | | | | | | Also add conversion from/to uint256 where needed.
* | Merge pull request #5499Wladimir J. van der Laan2014-12-311-2/+1
|\ \ | | | | | | | | | 7f71813 Bugfix: prioritisetransaction: Do some basic sanity checking on txid (Luke Dashjr)
| * | Bugfix: prioritisetransaction: Do some basic sanity checking on txidLuke Dashjr2014-12-171-2/+1
| |/ | | | | | | Besides giving a nicer error, this also prevents logging arbitrary data (which could have been used to exploit log readers) into debug.log