Remove ellipsis from block hash logs (#2105)

Signed-off-by: Bogdan Stirbat <bogdan.stirbat@gmail.com>
pull/2117/head
Bogdan Stirbat 4 years ago committed by GitHub
parent e31f614827
commit a572dc508c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fullsync/FullImportBlockStep.java

@ -49,11 +49,6 @@ public class FullImportBlockStep implements Consumer<Block> {
public void accept(final Block block) {
final long blockNumber = block.getHeader().getNumber();
final String blockHash = block.getHash().toHexString();
final String shortHash =
String.format(
"%s..%s",
blockHash.substring(0, 6),
blockHash.substring(blockHash.length() - 4, blockHash.length()));
final BlockImporter importer =
protocolSchedule.getByBlockNumber(blockNumber).getBlockImporter();
if (!importer.importBlock(protocolContext, block, HeaderValidationMode.SKIP_DETACHED)) {
@ -74,7 +69,7 @@ public class FullImportBlockStep implements Consumer<Block> {
LOG.info(
"Import reached block {} ({}), {} Mg/s, Peers: {}",
blockNumber,
shortHash,
blockHash,
mgps,
peerCount);
lastReportMillis = nowMilli;

Loading…
Cancel
Save