14 #include <boost/test/unit_test.hpp> 30 wallet->SetupDescriptorScriptPubKeyMans();
37 if (!
wallet->AddWalletDescriptor(w_desc, provider,
"",
false))
assert(
false);
uint256 last_failed_block
Height of the most recent block that could not be scanned due to read errors or pruning.
enum wallet::CWallet::ScanResult::@17 status
std::optional< int > last_scanned_height
uint256 last_scanned_block
Hash and height of most recent block that was successfully scanned.
An in-memory indexed chain of blocks.
std::unique_ptr< CWallet > CreateSyncedWallet(interfaces::Chain &chain, CChain &cchain, ArgsManager &args, const CKey &key)
int Height() const
Return the maximal height in the chain.
CBlockIndex * Genesis() const
Returns the index entry for the genesis block of this chain, or nullptr if none.
RAII object to check and reserve a wallet rescan.
uint256 GetBlockHash() const
std::unique_ptr< Descriptor > Parse(const std::string &descriptor, FlatSigningProvider &out, std::string &error, bool require_checksum)
Parse a descriptor string.
std::unique_ptr< WalletDatabase > CreateMockWalletDatabase(DatabaseOptions &options)
Return object for accessing temporary in-memory database.
Indicate that this wallet supports DescriptorScriptPubKeyMan.
Descriptor with some wallet metadata.
Interface giving clients (wallet processes, maybe other analysis tools in the future) ability to acce...
#define BOOST_CHECK_EQUAL(v1, v2)
RecursiveMutex cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate...
CBlockIndex * Tip() const
Returns the index entry for the tip of this chain, or nullptr if none.
An encapsulated private key.
std::shared_ptr< CWallet > wallet
std::string EncodeSecret(const CKey &key)
bool error(const char *fmt, const Args &... args)
#define BOOST_CHECK(expr)