Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
wallet::ListCoinsTestingSetup Class Reference
Inheritance diagram for wallet::ListCoinsTestingSetup:
[legend]
Collaboration diagram for wallet::ListCoinsTestingSetup:
[legend]

Public Member Functions

 ListCoinsTestingSetup ()
 ~ListCoinsTestingSetup ()
CWalletTxAddTx (CRecipient recipient)
Public Member Functions inherited from TestChain100Setup
 TestChain100Setup (ChainType chain_type=ChainType::REGTEST, TestOpts={})
CBlock CreateAndProcessBlock (const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey, Chainstate *chainstate=nullptr)
 Create a new block with just given transactions, coinbase paying to scriptPubKey, and try to add it to the current chain.
CBlock CreateBlock (const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey, Chainstate &chainstate)
 Create a new block with just given transactions, coinbase paying to scriptPubKey.
void mineBlocks (int num_blocks)
 Mine a series of new blocks on the active chain.
std::pair< CMutableTransaction, CAmountCreateValidTransaction (const std::vector< CTransactionRef > &input_transactions, const std::vector< COutPoint > &inputs, int input_height, const std::vector< CKey > &input_signing_keys, const std::vector< CTxOut > &outputs, const std::optional< CFeeRate > &feerate, const std::optional< uint32_t > &fee_output)
 Create a transaction, optionally setting the fee based on the feerate.
CMutableTransaction CreateValidMempoolTransaction (const std::vector< CTransactionRef > &input_transactions, const std::vector< COutPoint > &inputs, int input_height, const std::vector< CKey > &input_signing_keys, const std::vector< CTxOut > &outputs, bool submit=true)
 Create a transaction and, optionally, submit to the mempool.
CMutableTransaction CreateValidMempoolTransaction (CTransactionRef input_transaction, uint32_t input_vout, int input_height, CKey input_signing_key, CScript output_destination, CAmount output_amount=CAmount(1 *COIN), bool submit=true)
 Create a 1-in-1-out transaction and, optionally, submit to the mempool.
std::vector< CTransactionRefPopulateMempool (FastRandomContext &det_rand, size_t num_transactions, bool submit)
 Create transactions spending from m_coinbase_txns.
Public Member Functions inherited from TestingSetup
 TestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
Public Member Functions inherited from ChainTestingSetup
 ChainTestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
 ~ChainTestingSetup ()
void LoadVerifyActivateChainstate ()
Public Member Functions inherited from BasicTestingSetup
void SeedRandomForTest (SeedRand seed)
 Seed the global RNG state and m_rng for testing and log the seed value.
 BasicTestingSetup (ChainType chainType=ChainType::MAIN, TestOpts={})
 ~BasicTestingSetup ()

Public Attributes

std::unique_ptr< CWalletwallet
Public Attributes inherited from TestChain100Setup
std::vector< CTransactionRefm_coinbase_txns
CKey coinbaseKey
Public Attributes inherited from ChainTestingSetup
kernel::CacheSizes m_kernel_cache_sizes {node::CalculateCacheSizes(m_args).kernel}
bool m_coins_db_in_memory {true}
bool m_block_tree_db_in_memory {true}
std::function< void()> m_make_chainman {}
Public Attributes inherited from BasicTestingSetup
util::SignalInterrupt m_interrupt
node::NodeContext m_node
FastRandomContext m_rng
fs::path m_path_root
fs::path m_path_lock
bool m_has_custom_datadir {false}
ArgsManager m_args
 Test-specific arguments and settings.

Detailed Description

Definition at line 352 of file wallet_tests.cpp.

Constructor & Destructor Documentation

◆ ListCoinsTestingSetup()

wallet::ListCoinsTestingSetup::ListCoinsTestingSetup ( )
inline

Definition at line 355 of file wallet_tests.cpp.

Here is the call graph for this function:

◆ ~ListCoinsTestingSetup()

wallet::ListCoinsTestingSetup::~ListCoinsTestingSetup ( )
inline

Definition at line 361 of file wallet_tests.cpp.

Member Function Documentation

◆ AddTx()

CWalletTx & wallet::ListCoinsTestingSetup::AddTx ( CRecipient recipient)
inline

Definition at line 366 of file wallet_tests.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ wallet

std::unique_ptr<CWallet> wallet::ListCoinsTestingSetup::wallet

Definition at line 392 of file wallet_tests.cpp.


The documentation for this class was generated from the following file: