Raven Core
3.0.0
P2P Digital Currency
|
#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>
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 |
UniValue estimatefee | ( | const JSONRPCRequest & | request | ) |
UniValue estimaterawfee | ( | const JSONRPCRequest & | request | ) |
UniValue estimatesmartfee | ( | const JSONRPCRequest & | request | ) |
std::string gbt_vb_name | ( | const Consensus::DeploymentPos | pos | ) |
Definition at line 292 of file mining.cpp.
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.
UniValue generatetoaddress | ( | const JSONRPCRequest & | request | ) |
UniValue getblocktemplate | ( | const JSONRPCRequest & | request | ) |
UniValue getgenerate | ( | const JSONRPCRequest & | request | ) |
UniValue getmininginfo | ( | const JSONRPCRequest & | request | ) |
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.
UniValue getnetworkhashps | ( | const JSONRPCRequest & | request | ) |
unsigned int ParseConfirmTarget | ( | const UniValue & | value | ) |
Check bounds on a command line confirm target.
Definition at line 37 of file mining.cpp.
UniValue prioritisetransaction | ( | const JSONRPCRequest & | request | ) |
void RegisterMiningRPCCommands | ( | CRPCTable & | t | ) |
Register mining RPC commands.
Definition at line 1075 of file mining.cpp.
UniValue setgenerate | ( | const JSONRPCRequest & | request | ) |
UniValue submitblock | ( | const JSONRPCRequest & | request | ) |