From da34af135bc185ae93758f2bfe178deb0efd5339 Mon Sep 17 00:00:00 2001 From: liukai Date: Mon, 14 Nov 2022 17:18:09 +0800 Subject: [PATCH] feat(CONTRIBUTING.md): update CONTRIBUTING.md 1. update image links 2. modify log level --- CONTRIBUTING.md | 4 ++-- framework/src/main/java/org/tron/core/Wallet.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c81587501f3..d8dc83ad51b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -103,12 +103,12 @@ If you want to contribute codes to java-tron, please follow the following steps: Submit a pull request (PR) from your repository to `tronprotocol/java-tron`. Please be sure to click on the link in the red box shown below. Select the base branch for tronprotocol and the compare branch for your personal fork repository. - ![](https://codimd.s3.shivering-isles.com/demo/uploads/e24435ab42e4287d9369a2136.png) + ![image](https://raw.githubusercontent.com/tronprotocol/documentation-en/master/images/javatron_pr.png) ## Code Review Guidelines -The only way to get code into java-tron is to send a pull request. Those pull requests need to be reviewed by someone. there a guide that explains our expectations around PRs for both authors and reviewers. +The only way to get code into java-tron is to send a pull request. Those pull requests need to be reviewed by someone. The following guide explains our expectations around PRs for both authors and reviewers. ### Terminology - The author of a pull request is the entity who wrote the diff and submitted it to GitHub. diff --git a/framework/src/main/java/org/tron/core/Wallet.java b/framework/src/main/java/org/tron/core/Wallet.java index 1735aff84ae..3bac75edbfe 100755 --- a/framework/src/main/java/org/tron/core/Wallet.java +++ b/framework/src/main/java/org/tron/core/Wallet.java @@ -687,7 +687,7 @@ public long getTransactionCountByBlockNum(long blockNum) { Block block = chainBaseManager.getBlockByNum(blockNum).getInstance(); count = block.getTransactionsCount(); } catch (StoreException e) { - logger.error(e.getMessage()); + logger.warn(e.getMessage()); } return count; @@ -1414,7 +1414,7 @@ public Block getBlockById(ByteString blockId) { try { block = chainBaseManager.getBlockStore().get(blockId.toByteArray()).getInstance(); } catch (StoreException e) { - logger.error(e.getMessage()); + logger.warn(e.getMessage()); } return block; }