aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [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
* | en: Avoid ambiguous language regarding when transactions confirmLuke Dashjr2014-12-231-2/+2
| |
* | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
|/ | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* prioritisetransaction RPC: Restore compatibility with existing ↵Luke Dashjr2014-12-011-6/+5
| | | | implementations by using satoshis for fee offset rather than BTC
* Merge pull request #1816Wladimir J. van der Laan2014-11-241-23/+73
|\ | | | | | | | | | | | | | | | | | | | | | | b867e40 CreateNewBlock: Stick height in coinbase so we pass template sanity check (Luke Dashjr) 60755db submitblock: Check for duplicate submissions explicitly (Luke Dashjr) bc6cb41 QA RPC tests: Add tests block block proposals (Luke Dashjr) 9765a50 Implement BIP 23 Block Proposal (Luke Dashjr) 3dcbb9b Abstract DecodeHexBlk and BIP22ValidationResult functions out of submitblock (Luke Dashjr) 132ea9b miner_tests: Disable checkpoints so they don't fail the subsidy-change test (Luke Dashjr) df08a62 TestBlockValidity function for CBlock proposals (used by CreateNewBlock) (Luke Dashjr) 4ea1be7 CreateNewBlock and miner_tests: Also check generated template is valid by CheckBlockHeader, ContextualCheckBlockHeader, CheckBlock, and ContextualCheckBlock (Luke Dashjr) a48f2d6 Abstract context-dependent block checking from acceptance (Luke Dashjr)
| * submitblock: Check for duplicate submissions explicitlyLuke Dashjr2014-11-201-4/+21
| |
| * Implement BIP 23 Block ProposalLuke Dashjr2014-11-201-0/+33
| |
| * Abstract DecodeHexBlk and BIP22ValidationResult functions out of submitblockLuke Dashjr2014-11-181-21/+21
| |
* | Update comments in src/rpc* to be doxygen compatibleMichael Ford2014-11-201-5/+7
| |