Skip to content

Commit fe56e2c

Browse files
committed
modify processblock log
1 parent 67ef930 commit fe56e2c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/main/java/org/tron/core/net/TronNetDelegate.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ public void processBlock(BlockCapsule block) throws P2pException {
179179
try {
180180
if (!freshBlockId.contains(block.getBlockId())) {
181181
if (block.getNum() <= getHeadBlockId().getNum()) {
182-
logger.warn("Receive a fork block {} witness {}, head block {}",
183-
Hex.toHexString(block.getWitnessAddress().toByteArray()),
182+
logger.warn("Receive a fork block {} witness {}, head {}",
184183
block.getBlockId().getString(),
184+
Hex.toHexString(block.getWitnessAddress().toByteArray()),
185185
getHeadBlockId().getString());
186186
}
187187
dbManager.pushBlock(block);

‎src/main/java/org/tron/core/net/messagehandler/BlockMsgHandler.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private void processBlock(PeerConnection peer, BlockCapsule block) throws P2pExc
102102

103103
if (fastForward) {
104104
if (tronNetDelegate.getHeadBlockId().getNum() - block.getNum() > threshold) {
105-
logger.warn("Receive a low block {}, Head {}",
105+
logger.warn("Receive a low block {}, head {}",
106106
blockId.getString(), tronNetDelegate.getHeadBlockId().getString());
107107
return;
108108
}

0 commit comments

Comments
 (0)