Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.h
// Copyright (c) 2017 The Bitcoin developers | // Copyright (c) 2017 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_RPCBLOCKCHAIN_H | #ifndef BITCOIN_RPC_BLOCKCHAIN_H | ||||
#define BITCOIN_RPCBLOCKCHAIN_H | #define BITCOIN_RPC_BLOCKCHAIN_H | ||||
#include <univalue.h> | #include <univalue.h> | ||||
class CBlock; | class CBlock; | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class Config; | class Config; | ||||
class JSONRPCRequest; | class JSONRPCRequest; | ||||
Show All 19 Lines | |||||
/** Mempool to JSON */ | /** Mempool to JSON */ | ||||
UniValue mempoolToJSON(bool fVerbose = false); | UniValue mempoolToJSON(bool fVerbose = false); | ||||
/** Block header to JSON */ | /** Block header to JSON */ | ||||
UniValue blockheaderToJSON(const CBlockIndex *tip, | UniValue blockheaderToJSON(const CBlockIndex *tip, | ||||
const CBlockIndex *blockindex); | const CBlockIndex *blockindex); | ||||
#endif // BITCOIN_RPCBLOCKCHAIN_H | #endif // BITCOIN_RPC_BLOCKCHAIN_H |