![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "amount.h"
#include "chain.h"
#include "chainparams.h"
#include "checkpoints.h"
#include "coins.h"
#include "consensus/validation.h"
#include "validation.h"
#include "policy/policy.h"
#include "primitives/transaction.h"
#include "rpc/server.h"
#include "streams.h"
#include "sync.h"
#include "txmempool.h"
#include "util.h"
#include "utilstrencodings.h"
#include <stdint.h>
#include <univalue.h>
Go to the source code of this file.
Classes | |
struct | CompareBlocksByHeight |
Functions | |
void | TxToJSON (const CTransaction &tx, const uint256 hashBlock, UniValue &entry) |
void | ScriptPubKeyToJSON (const CScript &scriptPubKey, UniValue &out, bool fIncludeHex) |
double | GetDifficulty (const CBlockIndex *blockindex) |
UniValue | blockheaderToJSON (const CBlockIndex *blockindex) |
UniValue | blockToJSON (const CBlock &block, const CBlockIndex *blockindex, bool txDetails=false) |
UniValue | getblockcount (const UniValue ¶ms, bool fHelp) |
UniValue | getbestblockhash (const UniValue ¶ms, bool fHelp) |
UniValue | getdifficulty (const UniValue ¶ms, bool fHelp) |
UniValue | mempoolToJSON (bool fVerbose=false) |
UniValue | getrawmempool (const UniValue ¶ms, bool fHelp) |
UniValue | getblockhashes (const UniValue ¶ms, bool fHelp) |
UniValue | getblockhash (const UniValue ¶ms, bool fHelp) |
UniValue | getblockheader (const UniValue ¶ms, bool fHelp) |
UniValue | getblockheaders (const UniValue ¶ms, bool fHelp) |
UniValue | getblock (const UniValue ¶ms, bool fHelp) |
UniValue | gettxoutsetinfo (const UniValue ¶ms, bool fHelp) |
UniValue | gettxout (const UniValue ¶ms, bool fHelp) |
UniValue | verifychain (const UniValue ¶ms, bool fHelp) |
static UniValue | SoftForkMajorityDesc (int minVersion, CBlockIndex *pindex, int nRequired, const Consensus::Params &consensusParams) |
static UniValue | SoftForkDesc (const std::string &name, int version, CBlockIndex *pindex, const Consensus::Params &consensusParams) |
static UniValue | BIP9SoftForkDesc (const std::string &name, const Consensus::Params &consensusParams, Consensus::DeploymentPos id) |
UniValue | getblockchaininfo (const UniValue ¶ms, bool fHelp) |
UniValue | getchaintips (const UniValue ¶ms, bool fHelp) |
UniValue | mempoolInfoToJSON () |
UniValue | getmempoolinfo (const UniValue ¶ms, bool fHelp) |
UniValue | invalidateblock (const UniValue ¶ms, bool fHelp) |
UniValue | reconsiderblock (const UniValue ¶ms, bool fHelp) |
|
static |
Definition at line 729 of file blockchain.cpp.
Referenced by getblockchaininfo().
UniValue blockheaderToJSON | ( | const CBlockIndex * | blockindex | ) |
Definition at line 63 of file blockchain.cpp.
Referenced by getblockheader(), getblockheaders(), and rest_headers().
UniValue blockToJSON | ( | const CBlock & | block, |
const CBlockIndex * | blockindex, | ||
bool | txDetails = false |
||
) |
Definition at line 90 of file blockchain.cpp.
Referenced by getblock(), and rest_block().
Definition at line 148 of file blockchain.cpp.
Referenced by invalidtxrequest.InvalidTxRequestTest::get_tests(), invalidblockrequest.InvalidBlockRequestTest::get_tests(), sendheaders.SendHeadersTest::mine_blocks(), pruning.PruneTest::reorg_back(), abandonconflict.AbandonConflictTest::run_test(), invalidateblock.InvalidateTest::run_test(), prioritise_transaction.PrioritiseTransactionTest::run_test(), addressindex.AddressIndexTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), rest.RESTTest::run_test(), maxuploadtarget.MaxUploadTest::run_test(), p2p-versionbits-warning.VersionBitsWarningTest::send_blocks_with_version(), bip68-sequence.BIP68Test::test_bip68_not_consensus(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().
Definition at line 483 of file blockchain.cpp.
Referenced by pruning.PruneTest::reorg_back(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), merkle_blocks.MerkleBlockTest::run_test(), timestampindex.TimestampIndexTest::run_test(), rest.RESTTest::run_test(), maxuploadtarget.MaxUploadTest::run_test(), and p2p-acceptblock.AcceptBlockTest::run_test().
Definition at line 743 of file blockchain.cpp.
Referenced by bip9-softforks.BIP9SoftForksTest::get_bip9_status(), and rest_chaininfo().
Definition at line 131 of file blockchain.cpp.
Referenced by bip68-sequence.BIP68Test::activateCSV(), bip68-sequence.BIP68Test::get_median_time_past(), sendheaders.SendHeadersTest::mine_reorg(), reindex.ReindexTest::reindex(), pruning.PruneTest::reorg_back(), pruning.PruneTest::reorg_test(), bip65-cltv.BIP65Test::run_test(), bipdersig.BIP66Test::run_test(), invalidateblock.InvalidateTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), merkle_blocks.MerkleBlockTest::run_test(), wallet.WalletTest::run_test(), addressindex.AddressIndexTest::run_test(), spentindex.SpentIndexTest::run_test(), txindex.TxIndexTest::run_test(), p2p-acceptblock.AcceptBlockTest::run_test(), p2p-versionbits-warning.VersionBitsWarningTest::send_blocks_with_version(), bip68-sequence.BIP68Test::test_bip68_not_consensus(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().
Definition at line 311 of file blockchain.cpp.
Referenced by bip68-sequence.BIP68Test::get_median_time_past(), sendheaders.SendHeadersTest::mine_reorg(), pruning.PruneTest::reorg_back(), pruning.PruneTest::reorg_test(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), invalidateblock.InvalidateTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), merkle_blocks.MerkleBlockTest::run_test(), and bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs().
Definition at line 277 of file blockchain.cpp.
Referenced by timestampindex.TimestampIndexTest::run_test().
Definition at line 336 of file blockchain.cpp.
Referenced by bip68-sequence.BIP68Test::get_median_time_past(), and p2p-versionbits-warning.VersionBitsWarningTest::send_blocks_with_version().
Definition at line 394 of file blockchain.cpp.
Definition at line 837 of file blockchain.cpp.
double GetDifficulty | ( | const CBlockIndex * | blockindex | ) |
Definition at line 32 of file blockchain.cpp.
Referenced by blockheaderToJSON(), blockToJSON(), getblockchaininfo(), getchaintips(), getdifficulty(), getinfo(), and getmininginfo().
Definition at line 165 of file blockchain.cpp.
Definition at line 961 of file blockchain.cpp.
Referenced by prioritise_transaction.PrioritiseTransactionTest::run_test().
Definition at line 234 of file blockchain.cpp.
Referenced by listtransactions.ListTransactionsTest::run_rbf_opt_in_test(), abandonconflict.AbandonConflictTest::run_test(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), mempool_limit.MempoolLimitTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), prioritise_transaction.PrioritiseTransactionTest::run_test(), wallet.WalletTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), test_framework.util::sync_mempools(), replace-by-fee.ReplaceByFeeTest::test_doublespend_chain(), replace-by-fee.ReplaceByFeeTest::test_doublespend_tree(), replace-by-fee.ReplaceByFeeTest::test_prioritised_transactions(), bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs(), and replace-by-fee.ReplaceByFeeTest::test_simple_doublespend().
Definition at line 591 of file blockchain.cpp.
Definition at line 553 of file blockchain.cpp.
Definition at line 983 of file blockchain.cpp.
UniValue mempoolInfoToJSON | ( | ) |
Definition at line 948 of file blockchain.cpp.
Referenced by getmempoolinfo(), and rest_mempool_info().
UniValue mempoolToJSON | ( | bool | fVerbose = false | ) |
Definition at line 182 of file blockchain.cpp.
Referenced by getrawmempool(), and rest_mempool_contents().
Definition at line 1021 of file blockchain.cpp.
Referenced by mempool_packages.MempoolPackagesTest::run_test().
Definition at line 40 of file rawtransaction.cpp.
Referenced by decodescript(), gettxout(), and TxToJSON().
|
static |
Definition at line 719 of file blockchain.cpp.
Referenced by getblockchaininfo().
|
static |
Implementation of IsSuperMajority with better feedback
Definition at line 700 of file blockchain.cpp.
Referenced by SoftForkDesc().
void TxToJSON | ( | const CTransaction & | tx, |
const uint256 | hashBlock, | ||
UniValue & | entry | ||
) |
Definition at line 64 of file rawtransaction.cpp.
Referenced by blockToJSON(), decoderawtransaction(), and getrawtransaction().
Definition at line 671 of file blockchain.cpp.
Referenced by blockchain.BlockchainTest::run_test().