![]() |
Dash Core
0.12.2.1
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 "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 ¶ms, bool fHelp) |
UniValue | getgenerate (const UniValue ¶ms, bool fHelp) |
UniValue | generate (const UniValue ¶ms, bool fHelp) |
UniValue | setgenerate (const UniValue ¶ms, bool fHelp) |
UniValue | getmininginfo (const UniValue ¶ms, bool fHelp) |
UniValue | prioritisetransaction (const UniValue ¶ms, bool fHelp) |
static UniValue | BIP22ValidationResult (const CValidationState &state) |
std::string | gbt_vb_name (const Consensus::DeploymentPos pos) |
UniValue | getblocktemplate (const UniValue ¶ms, bool fHelp) |
UniValue | submitblock (const UniValue ¶ms, bool fHelp) |
UniValue | estimatefee (const UniValue ¶ms, bool fHelp) |
UniValue | estimatepriority (const UniValue ¶ms, bool fHelp) |
UniValue | estimatesmartfee (const UniValue ¶ms, bool fHelp) |
UniValue | estimatesmartpriority (const UniValue ¶ms, bool fHelp) |
|
static |
Definition at line 310 of file mining.cpp.
Referenced by getblocktemplate(), and submitblock().
Definition at line 811 of file mining.cpp.
Definition at line 842 of file mining.cpp.
Definition at line 869 of file mining.cpp.
Definition at line 905 of file mining.cpp.
std::string gbt_vb_name | ( | const Consensus::DeploymentPos | pos | ) |
Definition at line 328 of file mining.cpp.
Referenced by getblocktemplate().
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().
Definition at line 337 of file mining.cpp.
Referenced by getblocktemplate_longpoll.LongpollThread::run(), and getblocktemplate_longpoll.GetBlockTemplateLPTest::run_test().
Definition at line 103 of file mining.cpp.
Referenced by getmininginfo().
Definition at line 235 of file mining.cpp.
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().
Definition at line 81 of file mining.cpp.
Referenced by getmininginfo().
Definition at line 279 of file mining.cpp.
Referenced by prioritise_transaction.PrioritiseTransactionTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), replace-by-fee.ReplaceByFeeTest::test_prioritised_transactions(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().
Definition at line 191 of file mining.cpp.
Definition at line 755 of file mining.cpp.
Referenced by bip68-sequence.BIP68Test::test_bip68_not_consensus(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().