Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
rpcmining.cpp File Reference
#include "rpcserver.h"
#include "chainparams.h"
#include "init.h"
#include "net.h"
#include "main.h"
#include "miner.h"
#include <stdint.h>
#include "json/json_spirit_utils.h"
#include "json/json_spirit_value.h"
+ Include dependency graph for rpcmining.cpp:

Go to the source code of this file.

Functions

void InitRPCMining ()
 
void ShutdownRPCMining ()
 
Value GetNetworkHashPS (int lookup, int height)
 
Value getnetworkhashps (const Array &params, bool fHelp)
 
Value getmininginfo (const Array &params, bool fHelp)
 
Value getblocktemplate (const Array &params, bool fHelp)
 
Value submitblock (const Array &params, bool fHelp)
 

Function Documentation

Value getblocktemplate ( const Array &  params,
bool  fHelp 
)
Value getmininginfo ( const Array &  params,
bool  fHelp 
)

Definition at line 235 of file rpcmining.cpp.

References chainActive, GetArg(), GetDifficulty(), getgenerate(), gethashespersec(), getnetworkhashps(), GetWarnings(), CChain::Height(), HelpExampleCli(), HelpExampleRpc(), mempool, nLastBlockSize, nLastBlockTx, CTxMemPool::size(), and TestNet().

+ Here is the call graph for this function:

Value GetNetworkHashPS ( int  lookup,
int  height 
)

Definition at line 57 of file rpcmining.cpp.

References chainActive, CBlockIndex::GetBlockTime(), base_uint< BITS >::getdouble(), CChain::Height(), CBlockIndex::nChainWork, CBlockIndex::nHeight, CBlockIndex::pprev, and CChain::Tip().

Referenced by getnetworkhashps().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Value getnetworkhashps ( const Array &  params,
bool  fHelp 
)

Definition at line 94 of file rpcmining.cpp.

References GetNetworkHashPS(), HelpExampleCli(), and HelpExampleRpc().

Referenced by getmininginfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void InitRPCMining ( )

Definition at line 46 of file rpcmining.cpp.

Referenced by AppInit2().

+ Here is the caller graph for this function:

void ShutdownRPCMining ( )

Definition at line 49 of file rpcmining.cpp.

Referenced by Shutdown().

+ Here is the caller graph for this function:

Value submitblock ( const Array &  params,
bool  fHelp 
)

Definition at line 591 of file rpcmining.cpp.

References HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), ParseHex(), ProcessBlock(), PROTOCOL_VERSION, RPC_DESERIALIZATION_ERROR, and SER_NETWORK.

+ Here is the call graph for this function: