![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "chain.h"
#include "chainparams.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "validation.h"
#include "httpserver.h"
#include "rpc/server.h"
#include "streams.h"
#include "sync.h"
#include "txmempool.h"
#include "utilstrencodings.h"
#include "version.h"
#include <boost/algorithm/string.hpp>
#include <boost/dynamic_bitset.hpp>
#include <univalue.h>
Go to the source code of this file.
Classes | |
struct | CCoin |
Enumerations | |
enum | RetFormat { RF_UNDEF, RF_BINARY, RF_HEX, RF_JSON } |
Functions | |
void | TxToJSON (const CTransaction &tx, const uint256 hashBlock, UniValue &entry) |
UniValue | blockToJSON (const CBlock &block, const CBlockIndex *blockindex, bool txDetails=false) |
UniValue | mempoolInfoToJSON () |
UniValue | mempoolToJSON (bool fVerbose=false) |
void | ScriptPubKeyToJSON (const CScript &scriptPubKey, UniValue &out, bool fIncludeHex) |
UniValue | blockheaderToJSON (const CBlockIndex *blockindex) |
static bool | RESTERR (HTTPRequest *req, enum HTTPStatusCode status, string message) |
static enum RetFormat | ParseDataFormat (std::string ¶m, const std::string &strReq) |
static string | AvailableDataFormatsString () |
static bool | ParseHashStr (const string &strReq, uint256 &v) |
static bool | CheckWarmup (HTTPRequest *req) |
static bool | rest_headers (HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_block (HTTPRequest *req, const std::string &strURIPart, bool showTxDetails) |
static bool | rest_block_extended (HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_block_notxdetails (HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_chaininfo (HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_mempool_info (HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_mempool_contents (HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_tx (HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_getutxos (HTTPRequest *req, const std::string &strURIPart) |
bool | StartREST () |
void | InterruptREST () |
void | StopREST () |
Variables | |
static const size_t | MAX_GETUTXOS_OUTPOINTS = 15 |
struct { | |
enum RetFormat rf | |
const char * name | |
} | rf_names [] |
struct { | |
const char * prefix | |
bool(* handler )(HTTPRequest *req, const std::string &strReq) | |
} | uri_prefixes [] |
|
static |
Definition at line 96 of file rest.cpp.
Referenced by rest_block(), rest_getutxos(), and rest_tx().
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().
|
static |
Definition at line 121 of file rest.cpp.
Referenced by rest_block(), rest_chaininfo(), rest_getutxos(), rest_headers(), rest_mempool_contents(), rest_mempool_info(), and rest_tx().
void InterruptREST | ( | ) |
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().
|
static |
Definition at line 75 of file rest.cpp.
Referenced by rest_block(), rest_chaininfo(), rest_getutxos(), rest_headers(), rest_mempool_contents(), rest_mempool_info(), and rest_tx().
|
static |
Definition at line 112 of file rest.cpp.
Referenced by rest_block(), rest_headers(), and rest_tx().
|
static |
Definition at line 203 of file rest.cpp.
Referenced by rest_block_extended(), and rest_block_notxdetails().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 68 of file rest.cpp.
Referenced by CheckWarmup(), rest_block(), rest_chaininfo(), rest_getutxos(), rest_headers(), rest_mempool_contents(), rest_mempool_info(), and rest_tx().
Definition at line 40 of file rawtransaction.cpp.
Referenced by rest_getutxos().
bool StartREST | ( | ) |
Start HTTP REST subsystem. Precondition; HTTP and RPC has been started.
Definition at line 613 of file rest.cpp.
Referenced by AppInitServers().
void StopREST | ( | ) |
Stop HTTP REST subsystem. Precondition; HTTP and RPC has been stopped.
Definition at line 624 of file rest.cpp.
Referenced by PrepareShutdown().
void TxToJSON | ( | const CTransaction & | tx, |
const uint256 | hashBlock, | ||
UniValue & | entry | ||
) |
Definition at line 64 of file rawtransaction.cpp.
Referenced by rest_tx().
bool(* handler) (HTTPRequest *req, const std::string &strReq) |
Definition at line 601 of file rest.cpp.
Referenced by RegisterHTTPHandler(), and StartREST().
|
static |
Definition at line 26 of file rest.cpp.
Referenced by rest_getutxos().
const char* name |
Definition at line 37 of file rest.cpp.
Referenced by WalletFrame::addWallet(), AvailableDataFormatsString(), benchmark::BenchRunner::BenchRunner(), BIP9SoftForkDesc(), find_value(), FormatSubVersion(), GetThreadName(), ipcServerName(), CRPCTable::operator[](), ParseDataFormat(), ParseScript(), PaymentServer::PaymentServer(), CBlockTreeDB::ReadFlag(), WalletFrame::removeWallet(), RenameThread(), RPCRunLater(), run_benchmark(), WalletFrame::setCurrentWallet(), SoftForkDesc(), CNetAddr::ToStringIP(), TraceThread(), and CBlockTreeDB::WriteFlag().
const char* prefix |
Definition at line 600 of file rest.cpp.
Referenced by TransactionView::changedPrefix(), GetBlockPosFilename(), OpenDiskFile(), RegisterHTTPHandler(), runtest(), StartREST(), StopREST(), and UnregisterHTTPHandler().
enum RetFormat rf |
Definition at line 36 of file rest.cpp.
Referenced by rest_block(), rest_chaininfo(), rest_getutxos(), rest_headers(), rest_mempool_contents(), rest_mempool_info(), and rest_tx().
const { ... } rf_names[] |
Referenced by AvailableDataFormatsString(), and ParseDataFormat().
const { ... } uri_prefixes[] |
Referenced by StartREST(), and StopREST().