Raven Core  3.0.0
P2P Digital Currency
Classes | Functions | Variables
mining.cpp File Reference
#include "base58.h"
#include "amount.h"
#include "chain.h"
#include "chainparams.h"
#include "consensus/consensus.h"
#include "consensus/params.h"
#include "consensus/validation.h"
#include "core_io.h"
#include "init.h"
#include "validation.h"
#include "miner.h"
#include "net.h"
#include "policy/fees.h"
#include "pow.h"
#include "rpc/blockchain.h"
#include "rpc/mining.h"
#include "rpc/server.h"
#include "txmempool.h"
#include "util.h"
#include "utilstrencodings.h"
#include "validationinterface.h"
#include "warnings.h"
#include <memory>
#include <stdint.h>
#include <univalue.h>
Include dependency graph for mining.cpp:

Go to the source code of this file.

Classes

class  submitblock_StateCatcher
 

Functions

unsigned int ParseConfirmTarget (const UniValue &value)
 Check bounds on a command line confirm target. More...
 
UniValue GetNetworkHashPS (int lookup, int height)
 Return average network hashes per second based on the last 'lookup' blocks, or from the last difficulty change if 'lookup' is nonpositive. More...
 
UniValue getnetworkhashps (const JSONRPCRequest &request)
 
UniValue generateBlocks (std::shared_ptr< CReserveScript > coinbaseScript, int nGenerate, uint64_t nMaxTries, bool keepScript)
 Generate blocks (mine) More...
 
UniValue generatetoaddress (const JSONRPCRequest &request)
 
UniValue getmininginfo (const JSONRPCRequest &request)
 
UniValue prioritisetransaction (const JSONRPCRequest &request)
 
std::string gbt_vb_name (const Consensus::DeploymentPos pos)
 
UniValue getblocktemplate (const JSONRPCRequest &request)
 
UniValue submitblock (const JSONRPCRequest &request)
 
UniValue estimatefee (const JSONRPCRequest &request)
 
UniValue estimatesmartfee (const JSONRPCRequest &request)
 
UniValue estimaterawfee (const JSONRPCRequest &request)
 
UniValue getgenerate (const JSONRPCRequest &request)
 
UniValue setgenerate (const JSONRPCRequest &request)
 
void RegisterMiningRPCCommands (CRPCTable &t)
 Register mining RPC commands. More...
 

Variables

uint64_t nHashesPerSec
 

Function Documentation

◆ estimatefee()

UniValue estimatefee ( const JSONRPCRequest request)

Definition at line 780 of file mining.cpp.

Here is the call graph for this function:

◆ estimaterawfee()

UniValue estimaterawfee ( const JSONRPCRequest request)

Definition at line 882 of file mining.cpp.

Here is the call graph for this function:

◆ estimatesmartfee()

UniValue estimatesmartfee ( const JSONRPCRequest request)

Definition at line 821 of file mining.cpp.

Here is the call graph for this function:

◆ gbt_vb_name()

std::string gbt_vb_name ( const Consensus::DeploymentPos  pos)

Definition at line 292 of file mining.cpp.

◆ generateBlocks()

UniValue generateBlocks ( std::shared_ptr< CReserveScript coinbaseScript,
int  nGenerate,
uint64_t  nMaxTries,
bool  keepScript 
)

Generate blocks (mine)

Definition at line 111 of file mining.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generatetoaddress()

UniValue generatetoaddress ( const JSONRPCRequest request)

Definition at line 159 of file mining.cpp.

Here is the call graph for this function:

◆ getblocktemplate()

UniValue getblocktemplate ( const JSONRPCRequest request)

Definition at line 301 of file mining.cpp.

Here is the call graph for this function:

◆ getgenerate()

UniValue getgenerate ( const JSONRPCRequest request)

Definition at line 985 of file mining.cpp.

Here is the call graph for this function:

◆ getmininginfo()

UniValue getmininginfo ( const JSONRPCRequest request)

Definition at line 193 of file mining.cpp.

Here is the call graph for this function:

◆ GetNetworkHashPS()

UniValue GetNetworkHashPS ( int  lookup,
int  height 
)

Return average network hashes per second based on the last 'lookup' blocks, or from the last difficulty change if 'lookup' is nonpositive.

If 'height' is nonnegative, compute the estimate at the time when a given block was found.

Definition at line 52 of file mining.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getnetworkhashps()

UniValue getnetworkhashps ( const JSONRPCRequest request)

Definition at line 89 of file mining.cpp.

Here is the call graph for this function:

◆ ParseConfirmTarget()

unsigned int ParseConfirmTarget ( const UniValue value)

Check bounds on a command line confirm target.

Definition at line 37 of file mining.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prioritisetransaction()

UniValue prioritisetransaction ( const JSONRPCRequest request)

Definition at line 239 of file mining.cpp.

Here is the call graph for this function:

◆ RegisterMiningRPCCommands()

void RegisterMiningRPCCommands ( CRPCTable t)

Register mining RPC commands.

Definition at line 1075 of file mining.cpp.

Here is the call graph for this function:

◆ setgenerate()

UniValue setgenerate ( const JSONRPCRequest request)

Definition at line 1004 of file mining.cpp.

Here is the call graph for this function:

◆ submitblock()

UniValue submitblock ( const JSONRPCRequest request)

Definition at line 709 of file mining.cpp.

Here is the call graph for this function:

Variable Documentation

◆ nHashesPerSec

uint64_t nHashesPerSec

Definition at line 56 of file miner.cpp.