Merge bitcoin/bitcoin#29388: fuzz: remove unused args and context from FuzzedWallet

b14298c5bca395e5ed6a27fe1758c0d1f4b824ac fuzz: remove unused `args` and `context` from `FuzzedWallet` (brunoerg)

Pull request description:

  `ArgsManager args` and `WalletContext context` were previously used to create the wallet into `FuzzedWallet`. After fa15861763df71e788849b587883b3c16bb12229, they are not used anymore. This PR removes them.

ACKs for top commit:
  maflcko:
    lgtm ACK b14298c5bca395e5ed6a27fe1758c0d1f4b824ac
  epiccurious:
    utACK b14298c5bca395e5ed6a27fe1758c0d1f4b824ac
  ryanofsky:
    Code review ACK b14298c5bca395e5ed6a27fe1758c0d1f4b824ac

Tree-SHA512: 164e6a66ba05e11176a0cf68db6257f0ac07459cf7aa01ec4302b303c156c205a68128373a0b8daba0a6dfbff990af7fa14465a6341a296312fb20ea778c7a8c
This commit is contained in:
Ryan Ofsky 2024-02-06 19:44:59 -05:00
commit 5b8990a1f3
No known key found for this signature in database
GPG Key ID: 46800E30FC748A66

View File

@ -3,7 +3,6 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addresstype.h>
#include <common/args.h>
#include <consensus/amount.h>
#include <interfaces/chain.h>
#include <kernel/chain.h>
@ -89,8 +88,6 @@ void ImportDescriptors(CWallet& wallet, const std::string& seed_insecure)
* Wraps a descriptor wallet for fuzzing.
*/
struct FuzzedWallet {
ArgsManager args;
WalletContext context;
std::shared_ptr<CWallet> wallet;
FuzzedWallet(const std::string& name, const std::string& seed_insecure)
{