test, refactor: Remove unused error in wallet_tests.cpp

This has been unused since 3b98bf9c43.
This commit is contained in:
Hennadii Stepanov
2026-08-06 12:40:27 +01:00
parent 422f1bd92f
commit 3175d57628

View File

@@ -728,7 +728,6 @@ BOOST_FIXTURE_TEST_CASE(RemoveTxs, TestChain100Setup)
CKey key = GenerateRandomKey();
AddKey(*wallet, key);
std::string error;
m_coinbase_txns.push_back(CreateAndProcessBlock({}, GetScriptForRawPubKey(coinbaseKey.GetPubKey())).vtx[0]);
auto block_tx = TestSimpleSpend(*m_coinbase_txns[0], 0, coinbaseKey, GetScriptForRawPubKey(key.GetPubKey()));
CreateAndProcessBlock({block_tx}, GetScriptForRawPubKey(coinbaseKey.GetPubKey()));