mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 21:17:54 -05:00
Refactor and replace getByBlockNumber by getByBlockHeader (#5171)
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
This commit is contained in:
committed by
GitHub
parent
192c0bb651
commit
62f4a51191
@@ -47,12 +47,6 @@ public class ScheduleBasedBlockHeaderFunctions implements BlockHeaderFunctions {
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user