File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -197,15 +197,15 @@ FUZZ_TARGET(p2p_headers_presync, .init = initialize)
197197 auto headers_msg = NetMsg::Make (NetMsgType::BLOCK, TX_WITH_WITNESS (block));
198198 g_testing_setup->SendMessage (fuzzed_data_provider, std::move (headers_msg));
199199 });
200+ }
200201
201- // This is a conservative overestimate, as base is only moved forward when sending headers. In theory,
202- // the longest chain generated by this test is 1600 (FUZZ_MAX_HEADERS_RESULTS * 100) headers. In that case,
203- // this variable will accurately reflect the chain's total work.
204- total_work += CalculateClaimedHeadersWork (all_headers);
202+ // This is a conservative overestimate, as base is only moved forward when sending headers. In theory,
203+ // the longest chain generated by this test is 1600 (FUZZ_MAX_HEADERS_RESULTS * 100) headers. In that case,
204+ // this variable will accurately reflect the chain's total work.
205+ total_work += CalculateClaimedHeadersWork (all_headers);
205206
206- // This test should never create a chain with more work than MinimumChainWork.
207- assert (total_work < chainman.MinimumChainWork ());
208- }
207+ // This test should never create a chain with more work than MinimumChainWork.
208+ assert (total_work < chainman.MinimumChainWork ());
209209
210210 // The headers/blocks sent in this test should never be stored, as the chains don't have the work required
211211 // to meet the anti-DoS work threshold. So, if at any point the block index grew in size, then there's a bug
You can’t perform that action at this time.
0 commit comments