@@ -272,47 +272,13 @@ code chaser_validate::validate(bool bypass, const chain::block& block,
272272 if (bypass)
273273 return ec;
274274
275- // /////////////////////////////////////////////////////////////////////////////
276- // //if (!block.is_segregated())
277- // //{
278- // // block.clear_hash_cache(true);
279- // // if (block.is_invalid_witness_commitment())
280- // // return error::validate6;
281- // //}
282- // //else
283- // //{
284- // // block.clear_hash_cache(false);
285- // // if (block.is_invalid_merkle_root())
286- // // return error::validate7;
287- // //}
288- // /////////////////////////////////////////////////////////////////////////////
289-
290- // /////////////////////////////////////////////////////////////////////////
291- // //if (ctx.is_enabled(chain::flags::bip141_rule) && block.is_segregated())
292- // //{
293- // // fire(events::snapshot_span, block.segregated());
294- // //}
295- // /////////////////////////////////////////////////////////////////////////
296-
297275 auto & query = archive ();
298276
299277 if ((ec = block.accept (ctx, subsidy_interval_, initial_subsidy_)))
300- {
301- // /////////////////////////////////////////////////////////////////////
302- // Allow failure.
303- LOGR (" block.accept [" << ctx.height << " ] " << ec.message ());
304- return error::success;
305- // /////////////////////////////////////////////////////////////////////
306- }
278+ return ec;
307279
308280 if ((ec = block.connect (ctx)))
309- {
310- // /////////////////////////////////////////////////////////////////////
311- // Allow failure.
312- LOGR (" block.connect [" << ctx.height << " ] " << ec.message ());
313- return error::success;
314- // /////////////////////////////////////////////////////////////////////
315- }
281+ return ec;
316282
317283 if (!query.set_prevouts (link, block))
318284 return error::validate8;
0 commit comments