Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <rpc/blockchain.h>
#include <amount.h>
#include <base58.h>
#include <chain.h>
#include <chainparams.h>
#include <checkpoints.h>
#include <coins.h>
#include <consensus/validation.h>
#include <consensus/params.h>
#include <validation.h>
#include <core_io.h>
#include <policy/feerate.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <rpc/server.h>
#include <streams.h>
#include <sync.h>
#include <txdb.h>
#include <txmempool.h>
#include <util.h>
#include <utilstrencodings.h>
#include <hash.h>
#include <libdevcore/CommonData.h>
#include <stdint.h>
#include <univalue.h>
#include <boost/thread/thread.hpp>
#include <mutex>
#include <condition_variable>
Go to the source code of this file.
Classes | |
class | WaitForLogsParams |
class | SearchLogsParams |
struct | CCoinsStats |
struct | CompareBlocksByHeight |
Comparison function for sorting the getchaintips heads. More... | |
Definition in file blockchain.cpp.
void assignJSON | ( | UniValue & | entry, |
const TransactionReceiptInfo & | resExec | ||
) |
Definition at line 1085 of file blockchain.cpp.
void assignJSON | ( | UniValue & | logEntry, |
const dev::eth::LogEntry & | log, | ||
bool | includeAddress | ||
) |
void BIP9SoftForkDescPushBack | ( | UniValue & | bip9_softforks, |
const std::string & | name, | ||
const Consensus::Params & | consensusParams, | ||
Consensus::DeploymentPos | id | ||
) |
Definition at line 2042 of file blockchain.cpp.
UniValue blockheaderToJSON | ( | const CBlockIndex * | blockindex | ) |
Block header to JSON.
!!
!!
Definition at line 125 of file blockchain.cpp.
UniValue blockToJSON | ( | const CBlock & | block, |
const CBlockIndex * | blockindex, | ||
bool | txDetails | ||
) |
Block description to JSON.
!!
!!
Definition at line 175 of file blockchain.cpp.
UniValue callcontract | ( | const JSONRPCRequest & | request | ) |
Definition at line 1028 of file blockchain.cpp.
std::string EntryDescriptionString | ( | ) |
void entryToJSON | ( | UniValue & | info, |
const CTxMemPoolEntry & | e | ||
) |
Definition at line 475 of file blockchain.cpp.
UniValue executionResultToJSON | ( | const dev::eth::ExecutionResult & | exRes | ) |
Definition at line 234 of file blockchain.cpp.
UniValue getaccountinfo | ( | const JSONRPCRequest & | request | ) |
Definition at line 753 of file blockchain.cpp.
UniValue getbestblockhash | ( | const JSONRPCRequest & | request | ) |
Definition at line 291 of file blockchain.cpp.
UniValue getblock | ( | const JSONRPCRequest & | request | ) |
Definition at line 933 of file blockchain.cpp.
UniValue getblockchaininfo | ( | const JSONRPCRequest & | request | ) |
Definition at line 2051 of file blockchain.cpp.
UniValue getblockcount | ( | const JSONRPCRequest & | request | ) |
Definition at line 274 of file blockchain.cpp.
UniValue getblockhash | ( | const JSONRPCRequest & | request | ) |
Definition at line 728 of file blockchain.cpp.
UniValue getblockheader | ( | const JSONRPCRequest & | request | ) |
Definition at line 871 of file blockchain.cpp.
UniValue getchaintips | ( | const JSONRPCRequest & | request | ) |
Definition at line 2151 of file blockchain.cpp.
UniValue getchaintxstats | ( | const JSONRPCRequest & | request | ) |
double GetDifficulty | ( | const CBlockIndex * | blockindex = nullptr | ) |
Get the difficulty of the net wrt to the given block index, or the chain tip if not provided.
Definition at line 105 of file blockchain.cpp.
UniValue getdifficulty | ( | const JSONRPCRequest & | request | ) |
Definition at line 440 of file blockchain.cpp.
double GetDifficultyBitcoin | ( | const CBlockIndex * | blockindex | ) |
double GetDifficultyINTERNAL | ( | const CBlockIndex * | blockindex | ) |
Definition at line 46 of file blockchain.cpp.
UniValue getmempoolancestors | ( | const JSONRPCRequest & | request | ) |
Definition at line 567 of file blockchain.cpp.
UniValue getmempooldescendants | ( | const JSONRPCRequest & | request | ) |
Definition at line 631 of file blockchain.cpp.
UniValue getmempoolentry | ( | const JSONRPCRequest & | request | ) |
Definition at line 695 of file blockchain.cpp.
UniValue getmempoolinfo | ( | const JSONRPCRequest & | request | ) |
Definition at line 2267 of file blockchain.cpp.
UniValue getrawmempool | ( | const JSONRPCRequest & | request | ) |
Definition at line 535 of file blockchain.cpp.
UniValue getstorage | ( | const JSONRPCRequest & | request | ) |
Definition at line 803 of file blockchain.cpp.
UniValue gettransactionreceipt | ( | const JSONRPCRequest & | request | ) |
Definition at line 1556 of file blockchain.cpp.
UniValue gettxout | ( | const JSONRPCRequest & | request | ) |
Definition at line 1872 of file blockchain.cpp.
UniValue gettxoutset | ( | const JSONRPCRequest & | request | ) |
Definition at line 1802 of file blockchain.cpp.
UniValue gettxoutsetinfo | ( | const JSONRPCRequest & | request | ) |
Definition at line 1759 of file blockchain.cpp.
UniValue invalidateblock | ( | const JSONRPCRequest & | request | ) |
Definition at line 2327 of file blockchain.cpp.
UniValue listcontracts | ( | const JSONRPCRequest & | request | ) |
Definition at line 1590 of file blockchain.cpp.
UniValue mempoolInfoToJSON | ( | ) |
Mempool information to JSON.
Definition at line 2254 of file blockchain.cpp.
UniValue mempoolToJSON | ( | bool | fVerbose | ) |
Mempool to JSON.
Definition at line 507 of file blockchain.cpp.
int parseBlockHeight | ( | const UniValue & | val | ) |
Definition at line 1142 of file blockchain.cpp.
int parseBlockHeight | ( | const UniValue & | val, |
int | defaultVal | ||
) |
Definition at line 1187 of file blockchain.cpp.
Definition at line 1174 of file blockchain.cpp.
size_t parseUInt | ( | const UniValue & | val, |
size_t | defaultVal | ||
) |
Definition at line 1129 of file blockchain.cpp.
UniValue preciousblock | ( | const JSONRPCRequest & | request | ) |
Definition at line 2289 of file blockchain.cpp.
UniValue pruneblockchain | ( | const JSONRPCRequest & | request | ) |
Definition at line 1710 of file blockchain.cpp.
UniValue reconsiderblock | ( | const JSONRPCRequest & | request | ) |
Definition at line 2365 of file blockchain.cpp.
void RegisterBlockchainRPCCommands | ( | CRPCTable & | t | ) |
Register block chain RPC commands.
Definition at line 2507 of file blockchain.cpp.
void RPCNotifyBlockChange | ( | bool | ibd, |
const CBlockIndex * | |||
) |
Callback for when block tip changed.
Definition at line 308 of file blockchain.cpp.
UniValue searchlogs | ( | const JSONRPCRequest & | request | ) |
Definition at line 1467 of file blockchain.cpp.
void transactionReceiptInfoToJSON | ( | const TransactionReceiptInfo & | resExec, |
UniValue & | entry | ||
) |
Definition at line 1116 of file blockchain.cpp.
UniValue transactionReceiptToJSON | ( | const dev::eth::TransactionReceipt & | txRec | ) |
Definition at line 250 of file blockchain.cpp.
void TxToJSON | ( | const CTransaction & | tx, |
const uint256 | hashBlock, | ||
UniValue & | entry | ||
) |
Definition at line 38 of file rawtransaction.cpp.
UniValue verifychain | ( | const JSONRPCRequest & | request | ) |
Definition at line 1952 of file blockchain.cpp.
UniValue waitforblock | ( | const JSONRPCRequest & | request | ) |
Definition at line 356 of file blockchain.cpp.
UniValue waitforblockheight | ( | const JSONRPCRequest & | request | ) |
Definition at line 398 of file blockchain.cpp.
UniValue waitforlogs | ( | const JSONRPCRequest & | request_ | ) |
Definition at line 1280 of file blockchain.cpp.
UniValue waitfornewblock | ( | const JSONRPCRequest & | request | ) |
Definition at line 318 of file blockchain.cpp.