mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
Merge bitcoin/bitcoin#35914: test, fuzz: Remove unused variables
3175d57628test, refactor: Remove unused `error` in `wallet_tests.cpp` (Hennadii Stepanov)422f1bd92ftest, refactor: Remove unused `utxo_pool` in `coinselector_tests.cpp` (Hennadii Stepanov)e550945a39test, refactor: Remove unused `removed_refs` in `txgraph_tests.cpp` (Hennadii Stepanov)e50f422d25test, refactor: Remove unused variables in `test/rbf_tests.cpp` (Hennadii Stepanov)b7ae50e2e2fuzz, refactor: Remove unused `header` in `p2p_transport_serialization.cpp` (Hennadii Stepanov)3df0d067adfuzz, refactor: Remove unused `random_string` in `locale.cpp` (Hennadii Stepanov)fc28914de4fuzz, refactor: Remove unused `linearization` in `cluster_linearize.cpp` (Hennadii Stepanov)da58e55986test, refactor: Remove unused `warnings` in `wallet/test/util.cpp` (Hennadii Stepanov) Pull request description: Noted in https://my.cdash.org/builds/3868446/build. See commit messages for more details. Here is a related upstream change: https://github.com/llvm/llvm-project/pull/203084. ACKs for top commit: maflcko: review ACK3175d57628🐕 Tree-SHA512: 49334f79aa0effa9bbc94c7bce69bd1869ded87926229e575ba3721108d08ad5b7451222959310773e8e6009125d98016d095ac1a915e2dfa22712c51d8903aa
This commit is contained in:
@@ -611,7 +611,6 @@ FUZZ_TARGET(clusterlin_components)
|
||||
// Construct a depgraph.
|
||||
SpanReader reader(buffer);
|
||||
DepGraph<TestBitSet> depgraph;
|
||||
std::vector<DepGraphIndex> linearization;
|
||||
try {
|
||||
reader >> Using<DepGraphFormatter>(depgraph);
|
||||
} catch (const std::ios_base::failure&) {}
|
||||
|
||||
@@ -45,7 +45,6 @@ FUZZ_TARGET(locale)
|
||||
const char* c_locale = std::setlocale(LC_ALL, "C");
|
||||
assert(c_locale != nullptr);
|
||||
|
||||
const std::string random_string = fuzzed_data_provider.ConsumeRandomLengthString(5);
|
||||
const int64_t random_int64 = fuzzed_data_provider.ConsumeIntegral<int64_t>();
|
||||
const std::string tostring_without_locale = util::ToString(random_int64);
|
||||
const std::string strprintf_int_without_locale = strprintf("%d", random_int64);
|
||||
|
||||
@@ -86,7 +86,6 @@ FUZZ_TARGET(p2p_transport_serialization, .init = initialize_p2p_transport_serial
|
||||
assert(msg.m_raw_message_size == CMessageHeader::HEADER_SIZE + msg.m_message_size);
|
||||
assert(msg.m_time == time);
|
||||
|
||||
std::vector<unsigned char> header;
|
||||
auto msg2 = NetMsg::Make(msg.m_type, std::span{msg.m_recv});
|
||||
bool queued = send_transport.SetMessageToSend(msg2);
|
||||
assert(queued);
|
||||
|
||||
@@ -121,11 +121,6 @@ BOOST_FIXTURE_TEST_CASE(rbf_helper_functions, TestChain100Setup)
|
||||
BOOST_CHECK_EQUAL(entry8_high->GetFee(), high_fee);
|
||||
|
||||
CTxMemPool::setEntries set_12_normal{entry1_normal, entry2_normal};
|
||||
CTxMemPool::setEntries set_34_cpfp{entry3_low, entry4_high};
|
||||
CTxMemPool::setEntries set_56_low{entry5_low, entry6_low_prioritised};
|
||||
CTxMemPool::setEntries set_78_high{entry7_high, entry8_high};
|
||||
CTxMemPool::setEntries all_entries{entry1_normal, entry2_normal, entry3_low, entry4_high,
|
||||
entry5_low, entry6_low_prioritised, entry7_high, entry8_high};
|
||||
CTxMemPool::setEntries empty_set;
|
||||
|
||||
const auto unused_txid = Txid::FromUint256(GetRandHash());
|
||||
|
||||
@@ -290,7 +290,7 @@ BOOST_AUTO_TEST_CASE(txgraph_trim_big_singletons)
|
||||
BOOST_CHECK(graph->IsOversized(TxGraph::Level::TOP));
|
||||
|
||||
// Call Trim() to remove transactions and bring the cluster back within limits.
|
||||
auto removed_refs = graph->Trim();
|
||||
graph->Trim();
|
||||
graph->SanityCheck();
|
||||
BOOST_CHECK_EQUAL(graph->GetTransactionCount(TxGraph::Level::TOP), NUM_TOTAL_TX - 6);
|
||||
BOOST_CHECK(!graph->IsOversized(TxGraph::Level::TOP));
|
||||
|
||||
Reference in New Issue
Block a user