Merge 006740b6f6 into merged_master (Bitcoin PR bitcoin/bitcoin#25721)

This commit is contained in:
Byron Hambly 2024-10-25 12:52:06 +02:00
commit 49d368ea6b
25 changed files with 282 additions and 160 deletions

View file

@ -45,11 +45,8 @@ static void BenchUnloadWallet(std::shared_ptr<CWallet>&& wallet)
static void AddTx(CWallet& wallet)
{
const auto& dest = wallet.GetNewDestination(OutputType::BECH32, "");
assert(dest.HasRes());
CMutableTransaction mtx;
mtx.vout.push_back({::policyAsset, COIN, GetScriptForDestination(dest.GetObj())});
mtx.vout.push_back({::policyAsset, COIN, GetScriptForDestination(*Assert(wallet.GetNewDestination(OutputType::BECH32, "")))});
mtx.vin.push_back(CTxIn());
wallet.AddToWallet(MakeTransactionRef(mtx), TxStateInactive{});