This commit is contained in:
2025-04-07 18:01:39 -04:00
parent 0c8b1efaa9
commit 103981762f
2 changed files with 2 additions and 2 deletions

View File

@ -141,9 +141,9 @@ namespace LibTSforge.TokenStore
writer.BaseStream.Seek(curBlockOffset, SeekOrigin.Begin);
byte[] blockData = new byte[BLOCK_SIZE - 0x20];
byte[] blockHash = CryptoUtils.SHA256Hash(blockData);
tokens.Read(blockData, 0, BLOCK_SIZE - 0x20);
byte[] blockHash = CryptoUtils.SHA256Hash(blockData);
writer.BaseStream.Seek(curBlockOffset + BLOCK_SIZE - 0x20, SeekOrigin.Begin);
writer.Write(blockHash);