Skip to content

Commit 76d11c0

Browse files
author
wubin1
committed
fix type error
1 parent c184c4a commit 76d11c0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/main/java/org/tron/core/capsule/TransactionCapsule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,6 @@ public void setResult(Runtime runtime) {
925925
return;
926926
}
927927
this.setResultCode(contractResult.UNKNOWN);
928-
return;
929928
}
930929

931930
public void setResultCode(contractResult code) {

src/main/java/org/tron/core/config/args/Args.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ public class Args {
135135
private String storageDbEngine = "";
136136

137137
@Parameter(names = {
138-
"--storage-db-synchronous"}, description = "Storage db is synchronous or not.(true or flase)")
138+
"--storage-db-synchronous"}, description = "Storage db is synchronous or not.(true or false)")
139139
private String storageDbSynchronous = "";
140140

141141
@Parameter(names = {
142-
"--contract-parse-enable"}, description = "enable contract parses in java-tron or not.(true or flase)")
142+
"--contract-parse-enable"}, description = "enable contract parses in java-tron or not.(true or false)")
143143
private String contractParseEnable = "";
144144

145145
@Parameter(names = {"--storage-index-directory"}, description = "Storage index directory")

src/main/java/org/tron/core/db/TransactionRetStore.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ public TransactionInfoCapsule getTransactionInfo(byte[] key) throws BadItemExcep
3939
return null;
4040
}
4141
byte[] value = revokingDB.getUnchecked(ByteArray.fromLong(blockNumber));
42+
if (Objects.isNull(value)) {
43+
return null;
44+
}
45+
4246
TransactionRetCapsule result = new TransactionRetCapsule(value);
4347
if (Objects.isNull(result) || Objects.isNull(result.getInstance())) {
4448
return null;
4549
}
50+
4651
for (TransactionInfo transactionResultInfo : result.getInstance().getTransactioninfoList()) {
4752
if (transactionResultInfo.getId().equals(ByteString.copyFrom(key))) {
4853
return new TransactionInfoCapsule(transactionResultInfo);

0 commit comments

Comments
 (0)