소스 검색

Added parameters to findAccounts

davidbolet 7 년 전
부모
커밋
4435ef514d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/URPC.pas

+ 1 - 1
src/core/URPC.pas

@@ -2230,7 +2230,7 @@ function TRPCProcess.ProcessMethod(const method: String; params: TPCJSONObject;
       // Search by type-forSale-balance
       for i := start to FNode.Bank.AccountsCount - 1 do begin
         account := FNode.Operations.SafeBoxTransaction.Account(i);
-        if (accountType <> -1) AND (Integer(account.account_type) = accountType) then
+        if (accountType <> -1) AND (Integer(account.account_type) <> accountType) then
         begin
            Continue;
         end;