BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
Classes | Enumerations | Functions
rest.cpp File Reference
#include <chain.h>
#include <chainparams.h>
#include <core_io.h>
#include <index/txindex.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <validation.h>
#include <httpserver.h>
#include <rpc/blockchain.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 <univalue.h>
Include dependency graph for rest.cpp:

Go to the source code of this file.

Classes

struct  CCoin
 

Enumerations

enum  RetFormat { RetFormat::UNDEF, RetFormat::BINARY, RetFormat::HEX, RetFormat::JSON }
 

Functions

UniValue getblockchaininfo (const JSONRPCRequest &request)
 Implementation of IsSuperMajority with better feedback. More...
 
void StartREST ()
 Start HTTP REST subsystem. More...
 
void InterruptREST ()
 Interrupt RPC REST subsystem. More...
 
void StopREST ()
 Stop HTTP REST subsystem. More...
 

Enumeration Type Documentation

◆ RetFormat

enum RetFormat
strong
Enumerator
UNDEF 
BINARY 
HEX 
JSON 

Definition at line 28 of file rest.cpp.

Function Documentation

◆ getblockchaininfo()

UniValue getblockchaininfo ( const JSONRPCRequest request)

Implementation of IsSuperMajority with better feedback.

Definition at line 1201 of file blockchain.cpp.

Here is the call graph for this function:

◆ InterruptREST()

void InterruptREST ( )

Interrupt RPC REST subsystem.

Definition at line 600 of file rest.cpp.

Here is the caller graph for this function:

◆ StartREST()

void StartREST ( )

Start HTTP REST subsystem.

Precondition; HTTP and RPC has been started.

Definition at line 594 of file rest.cpp.

◆ StopREST()

void StopREST ( )

Stop HTTP REST subsystem.

Precondition; HTTP and RPC has been stopped.

Definition at line 604 of file rest.cpp.

Variable Documentation

◆ handler

bool(* handler) (HTTPRequest *req, const std::string &strReq)

Definition at line 582 of file rest.cpp.

◆ name

const char* name

Definition at line 37 of file rest.cpp.

◆ prefix

const char* prefix

Definition at line 581 of file rest.cpp.

◆ rf

Definition at line 36 of file rest.cpp.