Skip to content

Commit

Permalink
make sure closure is checking the protocol schedule correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <[email protected]>
  • Loading branch information
jflo committed Nov 13, 2023
1 parent 4eb3358 commit 700cee0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,13 @@ public RlpBlockImporter.ImportResult importBlockchain(
previousBlockFuture =
validationFuture.runAfterBothAsync(
calculationFutures,
() -> evaluateBlock(context, block, header, protocolSpec, skipPowValidation),
() ->
evaluateBlock(
context,
block,
header,
protocolSchedule.getByBlockHeader(header),
skipPowValidation),
importExecutor);
previousBlockFuture.exceptionally(
exception -> {
Expand Down

0 comments on commit 700cee0

Please sign in to comment.