소스 검색

Update UAccounts.pas

Add status checker while multithread validator is working
PascalCoin 6 년 전
부모
커밋
71c868aa57
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/core/UAccounts.pas

+ 5 - 0
src/core/UAccounts.pas

@@ -2823,6 +2823,11 @@ begin
               end;
               if (LAddToMultiThreadOperationsBlockValidator) then begin
                 LPCOperationsBlockValidator.AddToValidate(block.blockchainInfo);
+                LPCOperationsBlockValidator.GetStatus(LValidatedOPOk, LValidatedOPError, LValidatedOPPending);
+                if LValidatedOPError>0 then begin
+                  LPCOperationsBlockValidator.FillErrors(errors);
+                  Exit;
+                end;
               end;
             {$IFDEF TESTNET}
             end;