5#ifndef BITCOIN_WALLET_IMPORTS_H
6#define BITCOIN_WALLET_IMPORTS_H
35 std::optional<ImportError>
error;
38 return error.has_value();
55 std::optional<std::pair<int64_t, int64_t>>
range;
60 std::vector<ImportDescriptorRequest>& requests);
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
std::vector< ImportResult > ProcessDescriptorsImport(CWallet &wallet, std::vector< ImportDescriptorRequest > &requests)
WalletErrorCode
Machine-readable wallet error codes.
Information about a descriptor to be imported.
std::optional< int64_t > timestamp
std::optional< int64_t > next_index
std::optional< bool > internal
std::optional< std::pair< int64_t, int64_t > > range
bool is_general_error
Set to true when a wallet-wide precondition failed before any descriptor was processed (e....
ImportError(WalletErrorCode r, bilingual_str e, bool is_wallet_error)
std::optional< ImportError > error
std::vector< std::string > warnings
ImportResult(WalletErrorCode code, std::string message, std::vector< std::string > warnings={}, bool general_error=false)
Wallet-layer error with both programmatic and user-facing information.
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
is a home for public enum and struct type definitions that are used by internally by wallet code,...