Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaraLang committed Jan 16, 2020
1 parent a32d8c8 commit 529bf92
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions framework/src/main/java/org/tron/core/db/Manager.java
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,8 @@ private void switchFork(BlockCapsule newHead)
newHead.getBlockId(), getDynamicPropertiesStore().getLatestBlockHeaderHash());
} catch (NonCommonBlockException e) {
logger.info(
"this is not the most recent common ancestor, " +
"need to remove all blocks in the fork chain.");
"this is not the most recent common ancestor, "
+ "need to remove all blocks in the fork chain.");
BlockCapsule tmp = newHead;
while (tmp != null) {
khaosDb.removeBlk(tmp.getBlockId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public void doWork() {
updateAccount();
finish();
logger.info(
"Complete the asset update, Total time:{} milliseconds", System.currentTimeMillis() - start);
"Complete the asset update, Total time:{} milliseconds",
System.currentTimeMillis() - start);
}

public void init() {
Expand Down
4 changes: 2 additions & 2 deletions framework/src/main/java/org/tron/program/KeystoreFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public static void main(String[] args) {

private boolean priKeyValid(String priKey) {
if (StringUtils.isEmpty(priKey)) {
logger.warn("Warning: PrivateKey is empty !!");
logger.warn("Warning: PrivateKey is empty!");
return false;
}
if (priKey.length() != 64) {
logger.warn("Warning: PrivateKey length needs to be 64, but " + priKey.length() + " !!");
logger.warn("Warning: PrivateKey length needs to be 64, but " + priKey.length() + "!");
return false;
}
//Other rule;
Expand Down
4 changes: 2 additions & 2 deletions framework/src/main/java/org/tron/program/SolidityNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public SolidityNode(Manager dbManager) {
* Start the SolidityNode.
*/
public static void main(String[] args) {
logger.info("Solidity node running.");
logger.info("Solidity node is running.");
Args.setParam(args, Constant.TESTNET_CONF);
CommonParameter parameter = Args.getInstance();

Expand All @@ -67,7 +67,7 @@ public static void main(String[] args) {
.toBoolean(parameter.getStorage().getIndexSwitch())));

if (StringUtils.isEmpty(parameter.getTrustNodeAddr())) {
logger.error("Trust node not set.");
logger.error("Trust node is not set.");
return;
}
parameter.setSolidityNode(true);
Expand Down

0 comments on commit 529bf92

Please sign in to comment.