소스 검색

Fix Safeboxroothash bug on redonextlevels (when length is odd)

PascalCoin 6 년 전
부모
커밋
2e9794abf4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/UPCSafeBoxRootHash.pas

+ 1 - 1
src/core/UPCSafeBoxRootHash.pas

@@ -461,7 +461,7 @@ begin
     FNextLevelBytesBuffer.SafeBoxHashCalcType := Self.SafeBoxHashCalcType;
   end;
   j := Self.Length DIV 64;
-  for i := 0 to ((Self.Length DIV 64)-1) do begin
+  for i := 0 to (((Self.Length+32) DIV 64)-1) do begin
     NotifyUpdated( (i*64), 32);
   end;
 end;