Bitcoin Core  24.99.0
P2P Digital Currency
Classes | Namespaces | Functions
wallet_tests.cpp File Reference
#include <wallet/wallet.h>
#include <future>
#include <memory>
#include <stdint.h>
#include <vector>
#include <interfaces/chain.h>
#include <key_io.h>
#include <node/blockstorage.h>
#include <policy/policy.h>
#include <rpc/server.h>
#include <test/util/logging.h>
#include <test/util/setup_common.h>
#include <util/translation.h>
#include <validation.h>
#include <wallet/coincontrol.h>
#include <wallet/context.h>
#include <wallet/receive.h>
#include <wallet/spend.h>
#include <wallet/test/util.h>
#include <wallet/test/wallet_test_fixture.h>
#include <boost/test/unit_test.hpp>
#include <univalue.h>
Include dependency graph for wallet_tests.cpp:

Go to the source code of this file.

Classes

class  wallet::ListCoinsTestingSetup
 
class  wallet::FailBatch
 RAII class that provides access to a FailDatabase. More...
 
class  wallet::FailDatabase
 A dummy WalletDatabase that does nothing, only fails if needed. More...
 

Namespaces

 wallet
 

Functions

RPCHelpMan wallet::importmulti ()
 
RPCHelpMan wallet::dumpwallet ()
 
RPCHelpMan wallet::importwallet ()
 
static const std::shared_ptr< CWallet > wallet::TestLoadWallet (WalletContext &context)
 
static void wallet::TestUnloadWallet (std::shared_ptr< CWallet > &&wallet)
 
static CMutableTransaction wallet::TestSimpleSpend (const CTransaction &from, uint32_t index, const CKey &key, const CScript &pubkey)
 
static void wallet::AddKey (CWallet &wallet, const CKey &key)
 
 wallet::BOOST_FIXTURE_TEST_CASE (scan_for_wallet_transactions, TestChain100Setup)
 
 wallet::BOOST_FIXTURE_TEST_CASE (importmulti_rescan, TestChain100Setup)
 
 wallet::BOOST_FIXTURE_TEST_CASE (importwallet_rescan, TestChain100Setup)
 
 wallet::BOOST_FIXTURE_TEST_CASE (coin_mark_dirty_immature_credit, TestChain100Setup)
 
static int64_t wallet::AddTx (ChainstateManager &chainman, CWallet &wallet, uint32_t lockTime, int64_t mockTime, int64_t blockTime)
 
 wallet::BOOST_AUTO_TEST_CASE (ComputeTimeSmart)
 
 wallet::BOOST_AUTO_TEST_CASE (LoadReceiveRequests)
 
static void wallet::TestWatchOnlyPubKey (LegacyScriptPubKeyMan *spk_man, const CPubKey &add_pubkey)
 
static void wallet::PollutePubKey (CPubKey &pubkey)
 
 wallet::BOOST_AUTO_TEST_CASE (WatchOnlyPubKeys)
 
 wallet::BOOST_FIXTURE_TEST_CASE (ListCoinsTest, ListCoinsTestingSetup)
 
 wallet::BOOST_FIXTURE_TEST_CASE (wallet_disableprivkeys, TestChain100Setup)
 
static size_t wallet::CalculateNestedKeyhashInputSize (bool use_max_sig)
 
 wallet::BOOST_FIXTURE_TEST_CASE (dummy_input_size_test, TestChain100Setup)
 
bool wallet::malformed_descriptor (std::ios_base::failure e)
 
 wallet::BOOST_FIXTURE_TEST_CASE (wallet_descriptor_test, BasicTestingSetup)
 
 wallet::BOOST_FIXTURE_TEST_CASE (CreateWallet, TestChain100Setup)
 Test CWallet::Create() and its behavior handling potential race conditions if it's called the same time an incoming transaction shows up in the mempool or a new block. More...
 
 wallet::BOOST_FIXTURE_TEST_CASE (CreateWalletWithoutChain, BasicTestingSetup)
 
 wallet::BOOST_FIXTURE_TEST_CASE (ZapSelectTx, TestChain100Setup)
 
 wallet::BOOST_FIXTURE_TEST_CASE (wallet_sync_tx_invalid_state_test, TestingSetup)
 Checks a wallet invalid state where the inputs (prev-txs) of a new arriving transaction are not marked dirty, while the transaction that spends them exist inside the in-memory wallet tx map (not stored on db due a db write failure). More...