Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Functions
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 <crypto/equihash.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 <timedata.h>
#include <memory>
#include <stdint.h>
#include <boost/assign/list_of.hpp>
#include <boost/shared_ptr.hpp>
#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 getblocksubsidy (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...
 

Function Documentation

UniValue estimatefee ( const JSONRPCRequest request)

Definition at line 1003 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue estimaterawfee ( const JSONRPCRequest request)

Definition at line 1099 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue estimatesmartfee ( const JSONRPCRequest request)

Definition at line 1038 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 475 of file mining.cpp.

Here is the caller graph for this function:

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

Generate blocks (mine)

Definition at line 172 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue generatetoaddress ( const JSONRPCRequest request)

Definition at line 346 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue getblocksubsidy ( const JSONRPCRequest request)

Definition at line 969 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue getblocktemplate ( const JSONRPCRequest request)

Definition at line 484 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue getgenerate ( const JSONRPCRequest request)

Definition at line 1201 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue getmininginfo ( const JSONRPCRequest request)

Definition at line 382 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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 62 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue getnetworkhashps ( const JSONRPCRequest request)

Definition at line 101 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int ParseConfirmTarget ( const UniValue value)

Check bounds on a command line confirm target.

Definition at line 47 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue prioritisetransaction ( const JSONRPCRequest request)

Definition at line 422 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RegisterMiningRPCCommands ( CRPCTable t)

Register mining RPC commands.

Definition at line 1292 of file mining.cpp.

Here is the call graph for this function:

UniValue setgenerate ( const JSONRPCRequest request)

Definition at line 1220 of file mining.cpp.

Here is the call graph for this function:

UniValue submitblock ( const JSONRPCRequest request)

Definition at line 897 of file mining.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: