aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| |
* | Optimize -regtest setgenerate block generationGavin Andresen2014-11-141-8/+22
|/ | | | | | | | | | | Speed up generating blocks in regression test mode, by moving block-creating and nonce-finding directly into the setgenerate RPC call (instead of starting up a mining thread and waiting for it to find a block). This makes the forknotify RPC test three times quicker, for example (10 seconds runtime instead of 30 seconds, assuming the initial blockchain cache is already built).
* Merge pull request #3727Wladimir J. van der Laan2014-11-031-1/+6
|\ | | | | | | e69a587 RPC: submitblock: Support for returning specific rejection reasons (Luke Dashjr)
| * RPC: submitblock: Support for returning specific rejection reasonsLuke Dashjr2014-10-301-1/+6
| |
* | Merge pull request #5106Wladimir J. van der Laan2014-11-031-2/+34
|\| | | | | | | | | | | | | 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-1/+1
| | | | | | | | document it
| * Rename RPC_TRANSACTION_* errors to RPC_VERIFY_* and use RPC_VERIFY_ERROR for ↵Luke Dashjr2014-10-211-1/+1
| | | | | | | | submitblock
| * Bugfix: submitblock: Use a temporary CValidationState to determine ↵Luke Dashjr2014-10-211-1/+33
| | | | | | | | accurately the outcome of ProcessBlock, now that it no longer does the full block validity check
* | MOVEONLY: Move CFeeRate and Amount constants to amount.ojtimon2014-10-271-0/+1
|/
* Add fTestnetToBeDeprecatedFieldRPC to CChainParamsjtimon2014-10-101-1/+1
|
* Use a typedef for monetary valuesMark Friedenbach2014-09-261-1/+1
|
* Merge pull request #4911Pieter Wuille2014-09-161-2/+2
|\ | | | | | | 611116d header include cleanup (Philip Kaufmann)
| * header include cleanupPhilip Kaufmann2014-09-141-2/+2
| | | | | | | | - ensures alphabetical ordering for includes etc. in source file headers
* | Fixing compiler warning C4101ENikS2014-09-151-1/+1
|/ | | | Github-Pull: #4856
* Merge pull request #4377Pieter Wuille2014-08-271-1/+1
|\ | | | | | | | | | | 654871d replace ComputeMinWork with CheckMinWork (jtimon) b343c1a Move CBlockIndex::GetBlockWork() to pow::GetProofIncrement(nBits) (jtimon) c2c02f3 Move UpdateTime to pow (jtimon)
| * Move UpdateTime to powjtimon2014-08-231-1/+1
| |
* | Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+1
|/ | | | | | | | | | | | | | | | Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
* Consolidate CTransaction hex encode/decode into core_io.h, core_{read,write}.cppJeff Garzik2014-07-291-3/+2
|
* Add helptexts for -whitelist and rpc prioritisetransaction and switch to ↵Cozz Lovan2014-07-151-2/+21
| | | | bitcoin instead of satoshis
* getblocktemplate: longpolling supportLuke Dashjr2014-07-111-1/+59
|
* Use GetBlockTime() morejtimon2014-07-071-1/+1
|
* Replace HexBits with strprintfjtimon2014-06-281-1/+1
|
* JSON-RPC method: prioritisetransaction <txid> <priority delta> <priority tx fee>Luke Dashjr2014-06-261-0/+14
| | | | Accepts the transaction into mined blocks at a higher (or lower) priority
* Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan2014-06-251-1/+1
| | | | | | | | | This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.
* Refactor proof of work related functions out of mainjtimon2014-06-231-0/+1
|
* Remove getwork() RPC callPieter Wuille2014-06-211-159/+0
|
* Add "chain" to getmininginfo, improve help in getblockchaininfojtimon2014-06-171-0/+2
|
* Get rid of Params().RPCisTestNet()jtimon2014-06-171-1/+1
|
* small formatting, indentation and comment fixesPhilip Kaufmann2014-06-101-0/+2
| | | | - contains zero code changes
* Merge pull request #3824Wladimir J. van der Laan2014-06-091-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f0a83fc Use Params().NetworkID() instead of TestNet() from the payment protocol (jtimon) 2871889 net.h was using std namespace through chainparams.h included in protocol.h (jtimon) c8c52de Replace virtual methods with static attributes, chainparams.h depends on protocol.h instead of the other way around (jtimon) a3d946e Get rid of TestNet() (jtimon) 6fc0fa6 Add RPCisTestNet chain parameter (jtimon) cfeb823 Add RequireStandard chain parameter (jtimon) 21913a9 Add AllowMinDifficultyBlocks chain parameter (jtimon) d754f34 Move majority constants to chainparams (jtimon) 8d26721 Get rid of RegTest() (jtimon) cb9bd83 Add DefaultCheckMemPool chain parameter (jtimon) 2595b9a Add DefaultMinerThreads chain parameter (jtimon) bfa9a1a Add MineBlocksOnDemand chain parameter (jtimon) 1712adb Add MiningRequiresPeers chain parameter (jtimon)
| * Add RPCisTestNet chain parameterjtimon2014-06-041-1/+1
| |
| * Add MineBlocksOnDemand chain parameterjtimon2014-06-041-1/+1
| |
* | estimatefee / estimatepriority RPC methodsGavin Andresen2014-06-061-0/+61
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New RPC methods: return an estimate of the fee (or priority) a transaction needs to be likely to confirm in a given number of blocks. Mike Hearn created the first version of this method for estimating fees. It works as follows: For transactions that took 1 to N (I picked N=25) blocks to confirm, keep N buckets with at most 100 entries in each recording the fees-per-kilobyte paid by those transactions. (separate buckets are kept for transactions that confirmed because they are high-priority) The buckets are filled as blocks are found, and are saved/restored in a new fee_estiamtes.dat file in the data directory. A few variations on Mike's initial scheme: To estimate the fee needed for a transaction to confirm in X buckets, all of the samples in all of the buckets are used and a median of all of the data is used to make the estimate. For example, imagine 25 buckets each containing the full 100 entries. Those 2,500 samples are sorted, and the estimate of the fee needed to confirm in the very next block is the 50'th-highest-fee-entry in that sorted list; the estimate of the fee needed to confirm in the next two blocks is the 150'th-highest-fee-entry, etc. That algorithm has the nice property that estimates of how much fee you need to pay to get confirmed in block N will always be greater than or equal to the estimate for block N+1. It would clearly be wrong to say "pay 11 uBTC and you'll get confirmed in 3 blocks, but pay 12 uBTC and it will take LONGER". A single block will not contribute more than 10 entries to any one bucket, so a single miner and a large block cannot overwhelm the estimates.
* switch from boost int types to <stdint.h>Kamil Domanski2014-05-131-3/+3
|
* Move {Get,Set}Compact from bignum to uint256Pieter Wuille2014-05-091-2/+2
|
* RPC command getmininginfo showing right genproclimitIsidoro Ghezzi2014-03-221-0/+1
|
* "getnetworkhashps" with defaults was yielding "0", the hashrate is not 0.Gregory Maxwell2013-12-291-1/+4
| | | | This was broken in 4c6d41b8b653ef90639b1a32f6aab0bb1cef90c5.
* Make bitcoin compile without wallet if "db_cxx.h" is not presentThomas Holenstein2013-12-191-2/+3
| | | | | Moved includes of "db.h" into #ifdef ENABLE_WALLET blocks or remove them.
* Allow mining RPCs with --disable-walletWladimir J. van der Laan2013-12-091-6/+18
| | | | | | | | | | | The following mining-related RPC calls don't use the wallet: - getnetworkhashps - getmininginfo - getblocktemplate - submitblock Enable them when compiling with --disable-wallet.
* Split up bitcoinrpc (code movement only)Wladimir J. van der Laan2013-11-271-1/+1
| | | | | | | | | | | | | | Split bitcoinrpc up into - rpcserver: bitcoind RPC server - rpcclient: bitcoin-cli RPC client - rpcprotocol: shared common HTTP/JSON-RPC protocol code One step towards making bitcoin-cli independent from the rest of the code, and thus a smaller executable that doesn't have to be linked against leveldb. This commit only does code movement, there are no functional changes.
* setgenerate creates multiple blocks in -regtest modeGavin Andresen2013-11-221-5/+40
| | | | | | | | | | | | | | | 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.
* Issue #1865 - Clean up RPC help messagessje2013-11-131-37/+155
| | | | | | | | | | | | | | | | | | | Based on the proposal, update the help message of rpc methods - strings arguments are in double quotes rather than square brackets - numeric arguments have no quotes (and no default value) - optional parameters are surrounded by round brackets - json arguments are strings but don't use double quotes Added 3 sections for the details - Arguments: lists each argument, it's type, required or not, a default, and a description - Result: The method result, with json format if applicable, type, and a description - Examples: examples calls using bitcoin-cli and curl for json rpc call Problems - maybe this is too verbose - lines might be too long - description are not good or complete - examples may be too much
* misc small changes to polish after include cleanupPhilip Kaufmann2013-11-111-2/+0
|