Coverage Report

Created: 2026-04-29 19:21

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.26k
{
28
1.26k
    RegisterBlockchainRPCCommands(t);
29
1.26k
    RegisterFeeRPCCommands(t);
30
1.26k
    RegisterMempoolRPCCommands(t);
31
1.26k
    RegisterMiningRPCCommands(t);
32
1.26k
    RegisterNodeRPCCommands(t);
33
1.26k
    RegisterNetRPCCommands(t);
34
1.26k
    RegisterOutputScriptRPCCommands(t);
35
1.26k
    RegisterRawTransactionRPCCommands(t);
36
1.26k
    RegisterSignMessageRPCCommands(t);
37
1.26k
#ifdef ENABLE_EXTERNAL_SIGNER
38
1.26k
    RegisterSignerRPCCommands(t);
39
1.26k
#endif // ENABLE_EXTERNAL_SIGNER
40
1.26k
    RegisterTxoutProofRPCCommands(t);
41
1.26k
}
setup_common.cpp:RegisterAllCoreRPCCommands(CRPCTable&)
Line
Count
Source
27
152
{
28
152
    RegisterBlockchainRPCCommands(t);
29
152
    RegisterFeeRPCCommands(t);
30
152
    RegisterMempoolRPCCommands(t);
31
152
    RegisterMiningRPCCommands(t);
32
152
    RegisterNodeRPCCommands(t);
33
152
    RegisterNetRPCCommands(t);
34
152
    RegisterOutputScriptRPCCommands(t);
35
152
    RegisterRawTransactionRPCCommands(t);
36
152
    RegisterSignMessageRPCCommands(t);
37
152
#ifdef ENABLE_EXTERNAL_SIGNER
38
152
    RegisterSignerRPCCommands(t);
39
152
#endif // ENABLE_EXTERNAL_SIGNER
40
152
    RegisterTxoutProofRPCCommands(t);
41
152
}
init.cpp:RegisterAllCoreRPCCommands(CRPCTable&)
Line
Count
Source
27
1.11k
{
28
1.11k
    RegisterBlockchainRPCCommands(t);
29
1.11k
    RegisterFeeRPCCommands(t);
30
1.11k
    RegisterMempoolRPCCommands(t);
31
1.11k
    RegisterMiningRPCCommands(t);
32
1.11k
    RegisterNodeRPCCommands(t);
33
1.11k
    RegisterNetRPCCommands(t);
34
1.11k
    RegisterOutputScriptRPCCommands(t);
35
1.11k
    RegisterRawTransactionRPCCommands(t);
36
1.11k
    RegisterSignMessageRPCCommands(t);
37
1.11k
#ifdef ENABLE_EXTERNAL_SIGNER
38
1.11k
    RegisterSignerRPCCommands(t);
39
1.11k
#endif // ENABLE_EXTERNAL_SIGNER
40
1.11k
    RegisterTxoutProofRPCCommands(t);
41
1.11k
}
42
43
#endif // BITCOIN_RPC_REGISTER_H