瀏覽代碼

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;