diff options
Diffstat (limited to 'contrib/scripts/gnunet-chk.py.in')
-rwxr-xr-x | contrib/scripts/gnunet-chk.py.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/scripts/gnunet-chk.py.in b/contrib/scripts/gnunet-chk.py.in index afc0924f4..74e9e4cf9 100755 --- a/contrib/scripts/gnunet-chk.py.in +++ b/contrib/scripts/gnunet-chk.py.in | |||
@@ -32,7 +32,7 @@ from functools import reduce | |||
32 | # Defaults | 32 | # Defaults |
33 | DBLOCK_SIZE = (32 * 1024) # Data block size | 33 | DBLOCK_SIZE = (32 * 1024) # Data block size |
34 | 34 | ||
35 | # Pick a multiple of 2 here to achive 8-byte alignment! We also | 35 | # Pick a multiple of 2 here to achieve 8-byte alignment! We also |
36 | # probably want DBlocks to have (roughly) the same size as IBlocks. | 36 | # probably want DBlocks to have (roughly) the same size as IBlocks. |
37 | # With SHA-512, the optimal value is 32768 byte / 128 byte = 256 (128 | 37 | # With SHA-512, the optimal value is 32768 byte / 128 byte = 256 (128 |
38 | # byte = 2 * 512 bits). DO NOT CHANGE! | 38 | # byte = 2 * 512 bits). DO NOT CHANGE! |
@@ -288,7 +288,7 @@ def compute_rootchk(readin, size): | |||
288 | current_depth = 0 | 288 | current_depth = 0 |
289 | chks = [None] * (depth * CHK_PER_INODE) # list buffer | 289 | chks = [None] * (depth * CHK_PER_INODE) # list buffer |
290 | read_offset = 0 | 290 | read_offset = 0 |
291 | logging.debug("Begining to calculate tree hash with depth: " + repr(depth)) | 291 | logging.debug("Beginning to calculate tree hash with depth: " + repr(depth)) |
292 | while True: | 292 | while True: |
293 | if (depth == current_depth): | 293 | if (depth == current_depth): |
294 | off = CHK_PER_INODE * (depth - 1) | 294 | off = CHK_PER_INODE * (depth - 1) |
@@ -370,7 +370,7 @@ if '__main__' == __name__: | |||
370 | opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) | 370 | opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) |
371 | except getopt.GetoptError as err: | 371 | except getopt.GetoptError as err: |
372 | print(err) | 372 | print(err) |
373 | print("Exception occured") | 373 | print("Exception occurred") |
374 | usage() | 374 | usage() |
375 | sys.exit(2) | 375 | sys.exit(2) |
376 | for option, value in opts: | 376 | for option, value in opts: |