Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Functions | Variables
util.h File Reference
#include <any>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::shared_ptr< CWalletGetWalletForJSONRPCRequest (const JSONRPCRequest &request)
 Figures out what wallet, if any, to use for a JSONRPCRequest.
 
bool GetWalletNameFromJSONRPCRequest (const JSONRPCRequest &request, std::string &wallet_name)
 
void EnsureWalletIsUnlocked (const CWallet *)
 
WalletContextEnsureWalletContext (const std::any &context)
 
LegacyScriptPubKeyManEnsureLegacyScriptPubKeyMan (CWallet &wallet, bool also_create=false)
 
bool GetAvoidReuseFlag (const CWallet *const wallet, const UniValue &param)
 
bool ParseIncludeWatchonly (const UniValue &include_watchonly, const CWallet &wallet)
 Used by RPC commands that have an include_watchonly parameter.
 
std::string LabelFromValue (const UniValue &value)
 
std::tuple< std::shared_ptr< CWallet >, std::vector< bilingual_str > > LoadWalletHelper (WalletContext &context, UniValue load_on_start_param, const std::string wallet_name)
 

Variables

const std::string HELP_REQUIRING_PASSPHRASE
 

Function Documentation

◆ EnsureLegacyScriptPubKeyMan()

LegacyScriptPubKeyMan & EnsureLegacyScriptPubKeyMan ( CWallet wallet,
bool  also_create = false 
)

Definition at line 112 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureWalletContext()

WalletContext & EnsureWalletContext ( const std::any context)

Definition at line 102 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureWalletIsUnlocked()

void EnsureWalletIsUnlocked ( const CWallet pwallet)

Definition at line 94 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAvoidReuseFlag()

bool GetAvoidReuseFlag ( const CWallet *const  wallet,
const UniValue param 
)

Definition at line 21 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetWalletForJSONRPCRequest()

std::shared_ptr< CWallet > GetWalletForJSONRPCRequest ( const JSONRPCRequest request)

Figures out what wallet, if any, to use for a JSONRPCRequest.

Parameters
[in]requestJSONRPCRequest that wishes to access a wallet
Returns
NULL if no wallet should be used, or a pointer to the CWallet

Definition at line 63 of file util.cpp.

Here is the call graph for this function:

◆ GetWalletNameFromJSONRPCRequest()

bool GetWalletNameFromJSONRPCRequest ( const JSONRPCRequest request,
std::string &  wallet_name 
)

Definition at line 50 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LabelFromValue()

std::string LabelFromValue ( const UniValue value)

Definition at line 125 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadWalletHelper()

std::tuple< std::shared_ptr< CWallet >, std::vector< bilingual_str > > LoadWalletHelper ( WalletContext context,
UniValue  load_on_start_param,
const std::string  wallet_name 
)

Definition at line 134 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseIncludeWatchonly()

bool ParseIncludeWatchonly ( const UniValue include_watchonly,
const CWallet pwallet 
)

Used by RPC commands that have an include_watchonly parameter.

We default to true for watchonly wallets if include_watchonly isn't explicitly set.

Definition at line 38 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ HELP_REQUIRING_PASSPHRASE

const std::string HELP_REQUIRING_PASSPHRASE
extern

Definition at line 17 of file util.cpp.