PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Functions
mining.cpp File Reference
#include "amount.h"
#include "base58.h"
#include "chainparams.h"
#include "core_io.h"
#include "init.h"
#include "main.h"
#include "miner.h"
#include "net.h"
#include "poa.h"
#include "rpc/server.h"
#include "util.h"
#include <stdint.h>
#include <boost/assign/list_of.hpp>
#include <univalue.h>
Include dependency graph for mining.cpp:

Go to the source code of this file.

Classes

class  submitblock_StateCatcher
 

Functions

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 UniValue &params, bool fHelp)
 
UniValue getmininginfo (const UniValue &params, bool fHelp)
 
UniValue prioritisetransaction (const UniValue &params, bool fHelp)
 
UniValue getblocktemplate (const UniValue &params, bool fHelp)
 
UniValue getpoablocktemplate (const UniValue &params, bool fHelp)
 
UniValue setminingnbits (const UniValue &params, bool fHelp)
 
UniValue submitblock (const UniValue &params, bool fHelp)
 
UniValue estimatefee (const UniValue &params, bool fHelp)
 
UniValue estimatepriority (const UniValue &params, bool fHelp)
 

Function Documentation

◆ estimatefee()

UniValue estimatefee ( const UniValue params,
bool  fHelp 
)

Definition at line 982 of file mining.cpp.

Here is the call graph for this function:

◆ estimatepriority()

UniValue estimatepriority ( const UniValue params,
bool  fHelp 
)

Definition at line 1013 of file mining.cpp.

Here is the call graph for this function:

◆ getblocktemplate()

UniValue getblocktemplate ( const UniValue params,
bool  fHelp 
)
Todo:
: Maybe recheck connections/IBD and (if something wrong) send an expires-immediately template to stop miners?

Definition at line 405 of file mining.cpp.

Here is the call graph for this function:

◆ getmininginfo()

UniValue getmininginfo ( const UniValue params,
bool  fHelp 
)

Definition at line 312 of file mining.cpp.

Here is the call graph for this function:

◆ getnetworkhashps()

UniValue getnetworkhashps ( const UniValue params,
bool  fHelp 
)

Definition at line 77 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 39 of file mining.cpp.

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

◆ getpoablocktemplate()

UniValue getpoablocktemplate ( const UniValue params,
bool  fHelp 
)

Definition at line 690 of file mining.cpp.

Here is the call graph for this function:

◆ prioritisetransaction()

UniValue prioritisetransaction ( const UniValue params,
bool  fHelp 
)

Definition at line 357 of file mining.cpp.

Here is the call graph for this function:

◆ setminingnbits()

UniValue setminingnbits ( const UniValue params,
bool  fHelp 
)

Definition at line 871 of file mining.cpp.

Here is the call graph for this function:

◆ submitblock()

UniValue submitblock ( const UniValue params,
bool  fHelp 
)

Definition at line 906 of file mining.cpp.

Here is the call graph for this function: