![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#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 ¶ms, bool fHelp) |
| Value | getmininginfo (const Array ¶ms, bool fHelp) |
| Value | getblocktemplate (const Array ¶ms, bool fHelp) |
| Value | submitblock (const Array ¶ms, bool fHelp) |
| Value getblocktemplate | ( | const Array & | params, |
| bool | fHelp | ||
| ) |
Definition at line 403 of file rpcmining.cpp.
References CDataStream::begin(), CBlockTemplate::block, chainActive, COINBASE_FLAGS, CreateNewBlock(), CDataStream::end(), CTransaction::GetHash(), base_uint< BITS >::GetHex(), CBlockIndex::GetMedianTimePast(), GetTime(), CTxMemPool::GetTransactionsUpdated(), CBigNum::getuint256(), COutPoint::hash, CBlockHeader::hashPrevBlock, HelpExampleCli(), HelpExampleRpc(), HexBits(), HexStr(), CTransaction::IsCoinBase(), IsInitialBlockDownload(), JSONRPCError(), MAX_BLOCK_SIGOPS, MAX_BLOCK_SIZE, mempool, CBlockHeader::nBits, CBlockIndex::nHeight, CBlockHeader::nNonce, CBlockHeader::nTime, CBlockHeader::nVersion, OP_TRUE, CTxIn::prevout, PROTOCOL_VERSION, RPC_CLIENT_IN_INITIAL_DOWNLOAD, RPC_CLIENT_NOT_CONNECTED, RPC_INVALID_PARAMETER, SER_NETWORK, CBigNum::SetCompact(), CChain::Tip(), UpdateTime(), vNodes, CBlock::vtx, CBlockTemplate::vTxFees, and CBlockTemplate::vTxSigOps.
Here is the call graph for this function:| 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: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:
1.8.8