make sure closure is checking the protocol schedule correctly (#6165)

Signed-off-by: Justin Florentine <justin+github@florentine.us>
This commit is contained in:
Justin Florentine
2023-11-14 18:18:31 -05:00
committed by GitHub
parent a582b88a11
commit 0ccb4d4400

View File

@@ -156,7 +156,13 @@ public class RlpBlockImporter implements Closeable {
previousBlockFuture =
validationFuture.runAfterBothAsync(
calculationFutures,
() -> evaluateBlock(context, block, header, protocolSpec, skipPowValidation),
() ->
evaluateBlock(
context,
block,
header,
protocolSchedule.getByBlockHeader(header),
skipPowValidation),
importExecutor);
previousBlockFuture.exceptionally(
exception -> {