Bitcoin ABC 0.34.2
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< CWallet > GetWalletForJSONRPCRequest (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 *)
 
WalletContext & EnsureWalletContext (const std::any &context)
 
LegacyScriptPubKeyMan & EnsureLegacyScriptPubKeyMan (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)
 
void HandleWalletError (const std::shared_ptr< CWallet > wallet, DatabaseStatus &status, bilingual_str &error)
 

Variables

const std::string HELP_REQUIRING_PASSPHRASE
 

Function Documentation

◆ EnsureLegacyScriptPubKeyMan()

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

Definition at line 114 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 104 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 96 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:

◆ HandleWalletError()

void HandleWalletError ( const std::shared_ptr< CWallet >  wallet,
DatabaseStatus &  status,
bilingual_str &  error 
)

Definition at line 135 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 127 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.