Browse Source

Fix Safeboxroothash bug on redonextlevels (when length is odd)

PascalCoin 6 years ago
parent
commit
2e9794abf4
1 changed files with 1 additions and 1 deletions
  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;