fix: fix save tx error
@@ -116,8 +116,10 @@ public class AccountLedgerServiceImpl implements AccountLedgerService, Initializ
Result result;
for (int i = 0; i < txs.size(); i++) {
result = saveConfirmedTransaction(txs.get(i));
- if (result.isSuccess() && (int)result.getData() == 1) {
+ if (result.isSuccess() && result.getData() != null && (int) result.getData() == 1) {
savedTxList.add(txs.get(i));
+ } else if (result.isSuccess() && result.getData() != null && (int) result.getData() == 0) {
+ continue;
} else {
rollbackTransaction(savedTxList, false);
return result;
