Browse Source

Fix 'findaccounts' bug when public key not found (found by @techworker)

PascalCoin 5 years ago
parent
commit
090f8c8a39
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/core/UPCRPCFindAccounts.pas

+ 1 - 0
src/core/UPCRPCFindAccounts.pas

@@ -235,6 +235,7 @@ begin
     iPubKey := ASender.Node.Bank.SafeBox.OrderedAccountKeysList.IndexOfAccountKey(LAccPubKey);
     if (iPubKey<0) then begin
       // No account available with this pubkey, exit
+      Result := True;
       Exit;
     end;
   end else LSearchByPubkey := False;