Skip to content

Commit

Permalink
Update for the new bad block manager (#607)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 authored Feb 21, 2024
1 parent f16aabc commit e6f14e9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static void executeTest(final BlockchainReferenceTestCaseSpec spec) {
final ProtocolSpec protocolSpec = schedule.getByBlockHeader(block.getHeader());

final MainnetBlockImporter blockImporter =
getMainnetBlockImporter(protocolSpec, schedule, zkTracer);
getMainnetBlockImporter(context, protocolSpec, schedule, zkTracer);

final HeaderValidationMode validationMode =
"NoProof".equalsIgnoreCase(spec.getSealEngine())
Expand All @@ -143,7 +143,10 @@ public static void executeTest(final BlockchainReferenceTestCaseSpec spec) {
}

private static MainnetBlockImporter getMainnetBlockImporter(
final ProtocolSpec protocolSpec, final ProtocolSchedule schedule, final ZkTracer zkTracer) {
final ProtocolContext context,
final ProtocolSpec protocolSpec,
final ProtocolSchedule schedule,
final ZkTracer zkTracer) {
CorsetBlockProcessor corsetBlockProcessor =
new CorsetBlockProcessor(
protocolSpec.getTransactionProcessor(),
Expand All @@ -159,7 +162,7 @@ private static MainnetBlockImporter getMainnetBlockImporter(
protocolSpec.getBlockHeaderValidator(),
protocolSpec.getBlockBodyValidator(),
corsetBlockProcessor,
protocolSpec.getBadBlocksManager());
context.getBadBlockManager());

return new MainnetBlockImporter(blockValidator);
}
Expand Down

0 comments on commit e6f14e9

Please sign in to comment.