Anditto Heristyo
afe5b3f553
Added missing colons in when running help command
8 years ago
Matt Corallo
a13fa4c80f
Remove unused CDiskBlockPos* argument from ProcessNewBlock
8 years ago
Matt Corallo
2d6e5619af
Switch pblock in ProcessNewBlock to a shared_ptr
...
This (finally) fixes a performance regression in
b3b3c2a562
8 years ago
Matt Corallo
76faa3cdfe
Rename the remaining main.{h,cpp} to validation.{h,cpp}
8 years ago
Alex Morcos
d824ad030e
Disable fee estimates for a confirm target of 1 block
8 years ago
Pieter Wuille
ad04d1cb35
Always add default_witness_commitment with GBT client support
8 years ago
Pieter Wuille
1662b437b3
Make CBlock::vtx a vector of shared_ptr<CTransaction>
8 years ago
Matt Corallo
ae22357607
Replace CValidationState param in ProcessNewBlock with BlockChecked
8 years ago
Matt Corallo
7c98ce584e
Remove pfrom parameter from ProcessNewBlock
...
This further decouples ProcessNewBlock from networking/peer logic.
8 years ago
Matt Corallo
e2e069dabc
Revert "RPC: Give more details when "generate" fails"
...
This only returned information in the case of CheckBlock failure,
but breaks future changes.
8 years ago
Jorge Timón
1adf82ac39
RPC: Give more details when "generate" fails
8 years ago
Alex Morcos
b2322e0fc6
Remove priority estimation
8 years ago
Suhas Daftuar
88c35491ab
Fix compact block handling to not ban if block is invalid
8 years ago
S. Matthew English
1c3ecc70c8
instance of 'mem pool' to 'mempool'
...
there was only one instance of 'mem pool' and not 'mempool', so I changed it to conform to the others
8 years ago
Jonas Schnelli
69d1c25768
[RPC] Give RPC commands more information about the RPC request
8 years ago
Luke Dashjr
59daa58d6a
RPC/Mining: getblocktemplate: Update and fix formatting of help
8 years ago
Jorge Timón
b26a7b5377
RPC: Chainparams: Remove Chainparams::fTestnetToBeDeprecatedFieldRPC
8 years ago
Matt Corallo
f5efa28393
Remove CConnman parameter from ProcessNewBlock/ActivateBestChain
8 years ago
Pavel Janík
4731cab8fb
Do not shadow variables
8 years ago
Cory Fields
c0569c7fa1
net: Add most functions needed for vNodes to CConnman
8 years ago
Cory Fields
8d58c4d81f
net: Pass CConnman around as needed
8 years ago
Pavel Janík
de1bbe3b78
Do not shadow global RPC table variable (tableRPC)
8 years ago
leijurv
1aacfc2da5
various typos
8 years ago
Luke Dashjr
160f895a80
Bugfix: Use pre-BIP141 sigops until segwit activates
8 years ago
Jameson Lopp
65f4532f13
document return value of networkhashps for getmininginfo RPC endpoint
8 years ago
Suhas Daftuar
2c06bae39e
Rename "block cost" to "block weight"
8 years ago
Pieter Wuille
2b1f6f9ccf
BIP141: Other consensus critical limits, and BIP145
...
Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
8 years ago
Pieter Wuille
8b49040854
BIP141: Commitment structure and deployment
...
Includes a fix by Suhas Daftuar and LongShao007
8 years ago
Daniel Kraft
9fce0629b4
[c++11] Use std::unique_ptr for block creation.
...
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.
8 years ago
Luke Dashjr
12c708a4b3
getblocktemplate: Use version/force mutation to support pre-BIP9 clients
8 years ago
Luke Dashjr
98790608a4
getblocktemplate: Explicitly handle the distinction between GBT-affecting softforks vs not
8 years ago
Luke Dashjr
d3df40e51a
Implement BIP 9 GBT changes
...
- BIP9DeploymentInfo struct for static deployment info
- VersionBitsDeploymentInfo: Avoid C++11ism by commenting parameter names
- getblocktemplate: Make sure to set deployments in the version if it is LOCKED_IN
- In this commit, all rules are considered required for clients to support
8 years ago
Alex Morcos
4dc94d1036
Refactor CreateNewBlock to be a method of the BlockAssembler class
8 years ago
Wladimir J. van der Laan
07e4edb056
auto_ptr → unique_ptr
...
Change the few occurrences of the deprecated `auto_ptr` to c++11 `unique_ptr`.
Silences the deprecation warnings.
Also add a missing `std::` for consistency.
9 years ago
Wladimir J. van der Laan
fb8a8cf2e6
rpc: Register calls where they are defined
...
Split out methods to every module, apart from 'help' and 'stop' which
are implemented in rpcserver.cpp itself.
- This makes it easier to add or remove RPC commands - no longer everything that includes
rpcserver.h has to be rebuilt when there's a change there.
- Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions.
- Removes most of the bitcoin-specific code from rpcserver.cpp and .h.
Continues #7307 for the non-wallet.
9 years ago
Andrew C
fe00ca758a
Create generatetoaddress rpc
...
Creates the generatetoaddress rpc which is virtually identical to the generate rpc except that it takes an argument for the address to mine to. It does not rely on wallet functionality.
The mining code shared by generate and generatetoaddress has been moved to another method to reduce duplication.
9 years ago
Pieter Wuille
8a253b342c
Make the generate RPC call function for non-regtest
9 years ago
Leviathn
8d1de43f0c
Remove internal miner
...
This code removes the internal miner which is only useful on Testnet.
This leaves the internal miner that is useful on RegTest intact.
9 years ago
instagibbs
993d089e82
Changed getnetworkhps value to double to avoid overflow.
9 years ago
Daniel Cousens
a0eaff8a1d
move rpc* to rpc/
9 years ago
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
9 years ago
Luke Dashjr
b966aa836a
Constrain constant values to a single location in code
9 years ago
Alex Morcos
56106a3300
Expose RPC calls for estimatesmart functions
...
Also add testing for estimatesmartfee in smartfees.py
9 years ago
Jorge Timón
6bc9e4056b
Chainparams: Explicit CChainParams arg for miner:
...
-BitcoinMiner
-CreateNewBlock
-GenerateBitcoins
-ProcessBlockFound
9 years ago
Jorge Timón
598e494587
Chainparams: Explicit CChainParams arg for main (pre miner):
...
-ProcessNewBlock
-TestBlockValidity
9 years ago
Luke Dashjr
5f9260f458
Bugfix: If genproclimit is omitted to RPC setgenerate, don't change it; also show correct default in getmininginfo
9 years ago
Jonas Schnelli
9623e93473
[Univalue] add univalue over subtree
...
similar to secp256k1 include and compile univalue over a subtree
9 years ago
MarcoFalke
51ff777357
[trivial] Fix rpc message "help generate"
9 years ago
Ian T
e83df075f9
Update RPC generate help for numblocks to include required
...
The `generate` RPC has no default `numblocks` and a numeric value is required.
9 years ago
Daniel Kraft
2016576998
Fix crash when mining with empty keypool.
...
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.
9 years ago