Skip to content

Commit

Permalink
Refactor and replace getByBlockNumber by getByBlockHeader (#5171)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
  • Loading branch information
gfukushima authored Mar 10, 2023
1 parent 192c0bb commit 62f4a51
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ public ParsedExtraData parseExtraData(final BlockHeader header) {
}

private BlockHeaderFunctions getBlockHeaderFunctions(final SealableBlockHeader header) {
if (protocolSchedule instanceof ProtocolSchedule) {
return ((ProtocolSchedule) protocolSchedule)
.getByBlockNumber(header.getNumber())
.getBlockHeaderFunctions();
} else {
return protocolSchedule.getByBlockHeader(header).getBlockHeaderFunctions();
}
return protocolSchedule.getByBlockHeader(header).getBlockHeaderFunctions();
}
}

0 comments on commit 62f4a51

Please sign in to comment.