Bitcoin ABC  0.26.3
P2P Digital Currency
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. More...
 
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. More...
 
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 111 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 101 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 93 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 20 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 62 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 49 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 124 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 133 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 37 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 16 of file util.cpp.