Dash Core  0.12.2.1
P2P Digital Currency
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 "init.h"
#include "validation.h"
#include "miner.h"
#include "net.h"
#include "pow.h"
#include "rpc/server.h"
#include "spork.h"
#include "txmempool.h"
#include "util.h"
#include "utilstrencodings.h"
#include "validationinterface.h"
#include <stdint.h>
#include <boost/assign/list_of.hpp>
#include <boost/shared_ptr.hpp>
#include <univalue.h>

Go to the source code of this file.

Classes

class  submitblock_StateCatcher
 

Functions

UniValue GetNetworkHashPS (int lookup, int height)
 
UniValue getnetworkhashps (const UniValue &params, bool fHelp)
 
UniValue getgenerate (const UniValue &params, bool fHelp)
 
UniValue generate (const UniValue &params, bool fHelp)
 
UniValue setgenerate (const UniValue &params, bool fHelp)
 
UniValue getmininginfo (const UniValue &params, bool fHelp)
 
UniValue prioritisetransaction (const UniValue &params, bool fHelp)
 
static UniValue BIP22ValidationResult (const CValidationState &state)
 
std::string gbt_vb_name (const Consensus::DeploymentPos pos)
 
UniValue getblocktemplate (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)
 
UniValue estimatesmartfee (const UniValue &params, bool fHelp)
 
UniValue estimatesmartpriority (const UniValue &params, bool fHelp)
 

Function Documentation

◆ BIP22ValidationResult()

static UniValue BIP22ValidationResult ( const CValidationState state)
static

Definition at line 310 of file mining.cpp.

Referenced by getblocktemplate(), and submitblock().

◆ estimatefee()

UniValue estimatefee ( const UniValue params,
bool  fHelp 
)

Definition at line 811 of file mining.cpp.

◆ estimatepriority()

UniValue estimatepriority ( const UniValue params,
bool  fHelp 
)

Definition at line 842 of file mining.cpp.

◆ estimatesmartfee()

UniValue estimatesmartfee ( const UniValue params,
bool  fHelp 
)

Definition at line 869 of file mining.cpp.

◆ estimatesmartpriority()

UniValue estimatesmartpriority ( const UniValue params,
bool  fHelp 
)

Definition at line 905 of file mining.cpp.

◆ gbt_vb_name()

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

Definition at line 328 of file mining.cpp.

Referenced by getblocktemplate().

◆ generate()

UniValue generate ( const UniValue params,
bool  fHelp 
)

Definition at line 122 of file mining.cpp.

Referenced by bip68-sequence.BIP68Test::activateCSV(), pruning.PruneTest::create_big_chain(), pruning.PruneTest::create_chain_with_staleblocks(), walletbackup.WalletBackupTest::do_one_round(), test_framework.util::initialize_chain(), sendheaders.SendHeadersTest::mine_blocks(), sendheaders.SendHeadersTest::mine_reorg(), reindex.ReindexTest::reindex(), pruning.PruneTest::reorg_back(), pruning.PruneTest::reorg_test(), listtransactions.ListTransactionsTest::run_rbf_opt_in_test(), keypool.KeyPoolTest::run_test(), getchaintips.GetChainTipsTest::run_test(), keypool-hd.KeyPoolTest::run_test(), abandonconflict.AbandonConflictTest::run_test(), txn_doublespend.TxnMallTest::run_test(), txn_clone.TxnMallTest::run_test(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), zapwallettxes.ZapWalletTXesTest::run_test(), bipdersig.BIP66Test::run_test(), wallet-hd.WalletHDTest::run_test(), bip65-cltv.BIP65Test::run_test(), listtransactions.ListTransactionsTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), invalidateblock.InvalidateTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), getblocktemplate_longpoll.GetBlockTemplateLPTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), prioritise_transaction.PrioritiseTransactionTest::run_test(), forknotify.ForkNotifyTest::run_test(), bip68-sequence.BIP68Test::run_test(), merkle_blocks.MerkleBlockTest::run_test(), receivedby.ReceivedByTest::run_test(), wallet.WalletTest::run_test(), timestampindex.TimestampIndexTest::run_test(), rawtransactions.RawTransactionsTest::run_test(), spentindex.SpentIndexTest::run_test(), addressindex.AddressIndexTest::run_test(), txindex.TxIndexTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), zmq_test.ZMQTest::run_test(), rest.RESTTest::run_test(), p2p-versionbits-warning.VersionBitsWarningTest::run_test(), walletbackup.WalletBackupTest::run_test(), maxuploadtarget.MaxUploadTest::run_test(), bip68-sequence.BIP68Test::test_sequence_lock_confirmed_inputs(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().

◆ getblocktemplate()

UniValue getblocktemplate ( const UniValue params,
bool  fHelp 
)

◆ getgenerate()

UniValue getgenerate ( const UniValue params,
bool  fHelp 
)

Definition at line 103 of file mining.cpp.

Referenced by getmininginfo().

◆ getmininginfo()

UniValue getmininginfo ( const UniValue params,
bool  fHelp 
)

Definition at line 235 of file mining.cpp.

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

Referenced by getnetworkhashps().

◆ getnetworkhashps()

UniValue getnetworkhashps ( const UniValue params,
bool  fHelp 
)

Definition at line 81 of file mining.cpp.

Referenced by getmininginfo().

◆ prioritisetransaction()

◆ setgenerate()

UniValue setgenerate ( const UniValue params,
bool  fHelp 
)

Definition at line 191 of file mining.cpp.

◆ submitblock()

UniValue submitblock ( const UniValue params,
bool  fHelp 
)