Bitcoin Core 28.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 <addresstype.h>
#include <interfaces/chain.h>
#include <key_io.h>
#include <node/blockstorage.h>
#include <policy/policy.h>
#include <rpc/server.h>
#include <script/solver.h>
#include <test/util/logging.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/translation.h>
#include <validation.h>
#include <validationinterface.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
 

Namespaces

namespace  wallet
 

Functions

RPCHelpMan wallet::importmulti ()
 
RPCHelpMan wallet::dumpwallet ()
 
RPCHelpMan wallet::importwallet ()
 
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 (write_wallet_settings_concurrently, TestingSetup)
 
 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)
 
void wallet::TestLoadWallet (const std::string &name, DatabaseFormat format, std::function< void(std::shared_ptr< CWallet >)> f)
 
 wallet::BOOST_FIXTURE_TEST_CASE (LoadReceiveRequests, TestingSetup)
 
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)
 
void wallet::TestCoinsResult (ListCoinsTest &context, OutputType out_type, CAmount amount, std::map< OutputType, size_t > &expected_coins_sizes)
 
 wallet::BOOST_FIXTURE_TEST_CASE (BasicOutputTypesTest, ListCoinsTest)
 
 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 (RemoveTxs, 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...