Coverage Report

Created: 2026-09-02 14:16

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/tmp/bitcoin/src/rpc/register.h
Line
Count
Source
1
// Copyright (c) 2009-present The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_RPC_REGISTER_H
6
#define BITCOIN_RPC_REGISTER_H
7
8
#include <bitcoin-build-config.h> // IWYU pragma: keep
9
10
/** These are in one header file to avoid creating tons of single-function
11
 * headers for everything under src/rpc/ */
12
class CRPCTable;
13
14
void RegisterBlockchainRPCCommands(CRPCTable &tableRPC);
15
void RegisterFeeRPCCommands(CRPCTable&);
16
void RegisterMempoolRPCCommands(CRPCTable&);
17
void RegisterMiningRPCCommands(CRPCTable &tableRPC);
18
void RegisterNodeRPCCommands(CRPCTable&);
19
void RegisterNetRPCCommands(CRPCTable&);
20
void RegisterOutputScriptRPCCommands(CRPCTable&);
21
void RegisterRawTransactionRPCCommands(CRPCTable &tableRPC);
22
void RegisterSignMessageRPCCommands(CRPCTable&);
23
void RegisterSignerRPCCommands(CRPCTable &tableRPC);
24
void RegisterTxoutProofRPCCommands(CRPCTable&);
25
26
static inline void RegisterAllCoreRPCCommands(CRPCTable &t)
27
1.34k
{
28
1.34k
    RegisterBlockchainRPCCommands(t);
29
1.34k
    RegisterFeeRPCCommands(t);
30
1.34k
    RegisterMempoolRPCCommands(t);
31
1.34k
    RegisterMiningRPCCommands(t);
32
1.34k
    RegisterNodeRPCCommands(t);
33
1.34k
    RegisterNetRPCCommands(t);
34
1.34k
    RegisterOutputScriptRPCCommands(t);
35
1.34k
    RegisterRawTransactionRPCCommands(t);
36
1.34k
    RegisterSignMessageRPCCommands(t);
37
1.34k
#ifdef ENABLE_EXTERNAL_SIGNER
38
1.34k
    RegisterSignerRPCCommands(t);
39
1.34k
#endif // ENABLE_EXTERNAL_SIGNER
40
1.34k
    RegisterTxoutProofRPCCommands(t);
41
1.34k
}
setup_common.cpp:RegisterAllCoreRPCCommands(CRPCTable&)
Line
Count
Source
27
168
{
28
168
    RegisterBlockchainRPCCommands(t);
29
168
    RegisterFeeRPCCommands(t);
30
168
    RegisterMempoolRPCCommands(t);
31
168
    RegisterMiningRPCCommands(t);
32
168
    RegisterNodeRPCCommands(t);
33
168
    RegisterNetRPCCommands(t);
34
168
    RegisterOutputScriptRPCCommands(t);
35
168
    RegisterRawTransactionRPCCommands(t);
36
168
    RegisterSignMessageRPCCommands(t);
37
168
#ifdef ENABLE_EXTERNAL_SIGNER
38
168
    RegisterSignerRPCCommands(t);
39
168
#endif // ENABLE_EXTERNAL_SIGNER
40
168
    RegisterTxoutProofRPCCommands(t);
41
168
}
init.cpp:RegisterAllCoreRPCCommands(CRPCTable&)
Line
Count
Source
27
1.17k
{
28
1.17k
    RegisterBlockchainRPCCommands(t);
29
1.17k
    RegisterFeeRPCCommands(t);
30
1.17k
    RegisterMempoolRPCCommands(t);
31
1.17k
    RegisterMiningRPCCommands(t);
32
1.17k
    RegisterNodeRPCCommands(t);
33
1.17k
    RegisterNetRPCCommands(t);
34
1.17k
    RegisterOutputScriptRPCCommands(t);
35
1.17k
    RegisterRawTransactionRPCCommands(t);
36
1.17k
    RegisterSignMessageRPCCommands(t);
37
1.17k
#ifdef ENABLE_EXTERNAL_SIGNER
38
1.17k
    RegisterSignerRPCCommands(t);
39
1.17k
#endif // ENABLE_EXTERNAL_SIGNER
40
1.17k
    RegisterTxoutProofRPCCommands(t);
41
1.17k
}
42
43
#endif // BITCOIN_RPC_REGISTER_H