Browse Source

Update UBlockChain.pas

PascalCoin 4 years ago
parent
commit
48cd59697a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/UBlockChain.pas

+ 2 - 0
src/core/UBlockChain.pas

@@ -3010,7 +3010,9 @@ begin
   if (Not forceSave) AND (Not TPCSafeBox.MustSafeBoxBeSaved(Bank.BlocksCount)) then exit; // No save
   if (Not forceSave) AND (Not TPCSafeBox.MustSafeBoxBeSaved(Bank.BlocksCount)) then exit; // No save
   Try
   Try
     Result := DoSaveBank;
     Result := DoSaveBank;
+    {$IFnDEF USE_ABSTRACTMEM}
     FBank.SafeBox.CheckMemory;
     FBank.SafeBox.CheckMemory;
+    {$ENDIF}
   Except
   Except
     On E:Exception do begin
     On E:Exception do begin
       TLog.NewLog(lterror,Classname,'Error saving Bank: '+E.Message);
       TLog.NewLog(lterror,Classname,'Error saving Bank: '+E.Message);