feat: add get unconfirmed transaction interface
@@ -131,6 +131,12 @@ public class AccountLedgerServiceImpl implements AccountLedgerService, Initializ
return null;
}
+ @Override
+ public Result<List<Transaction>> getAllUnconfirmedTransaction(){
+ List<Transaction> localTxList = storageService.loadAllTempList().getData();
+ return Result.getSuccess().setData(localTxList);
+ }
+
@Override
public Result<Integer> rollback(Transaction tx) {
if (!isLocalTransaction(tx)) {
