Skip to content

Commit

Permalink
Trivial: add error log
Browse files Browse the repository at this point in the history
  • Loading branch information
semux committed Jul 7, 2019
1 parent c2dd728 commit 9714fd5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/org/semux/consensus/SemuxBft.java
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ protected boolean validateBlockProposal(BlockHeader header, List<Transaction> tr
validBlocks.put(ByteArray.of(block.getHash()), block);
return true;
} catch (Exception e) {
logger.error("Unexpected exception during block proposal validation", e);
return false;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/semux/core/BlockchainImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ protected boolean validateBlock(Block block, AccountState asSnapshot, DelegateSt

return true;
} catch (Exception e) {
logger.error("Unexpected exception during block validation", e);
return false;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/semux/net/SemuxP2pHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ public void channelActive(ChannelHandlerContext ctx) throws Exception {
// doesn't enable new handshake protocol.
}
} else {
System.out.println("Sending v1 message");
if (channel.isOutbound()) {
msgQueue.sendMessage(new org.semux.net.msg.p2p.handshake.v1.HelloMessage(
config.network(), config.networkVersion(), client.getPeerId(),
Expand Down

0 comments on commit 9714fd5

Please sign in to comment.