]> infiniteadaptability.org Git - seeder/commitdiff
updated using git-extra
authoralex <[email protected]>
Tue, 16 Nov 2021 06:18:18 +0000 (22:18 -0800)
committeralex <[email protected]>
Tue, 16 Nov 2021 06:18:18 +0000 (22:18 -0800)
todo

diff --git a/todo b/todo
index 425cb5e57ba38c284f1fd143f320e866ff98f5ec..de5a97c58ea82a7adc8a99fa3cdb59f8aa8df11f 100644 (file)
--- a/todo
+++ b/todo
@@ -53,6 +53,21 @@ Stage 0:
 -verify correctness of file_hash w/ bep0052.py script
        *works for short files (TEST_FILE_1-4)
        -failing for extended files - HERE
+               -options:
+                       -add complexity to piece layer generation to bring in like w/ bep0052 file
+                       -modify block_merkle_layer to correctly pad to power of 2 (for a balanced tree)
+                               -doesn't work, padding depends of piece_layer size...
+                       -bring back block_pad?
+                               -can't pad to pow 2, have to pad to piece layer size (to balance tree)
+                                       -pass pointer to last block, to pad to piece layer size?
+                               -after creating piece layers, have to pad to pow of 2 (to balance tree)
+                       -count block count while adding to piece_layers
+                               -add pad (to next pow 2 if smaller than piece layer size) before doing merkle layer
+                       -figure out how to do merkle root non-destructively
+                               -isomorphism?
+                               -not a big fan of the duplicate -> root strategy
+                                       -could block_length -> malloc all at once?
+                               -piece layers calculations need merkle root destructively
 -watch -- SKIP
        *start watching thread
        *figure out flags
@@ -80,6 +95,9 @@ Stage 0:
 -daemonize
 -tests
        -file_hash
+               -add test to verify that piece size has no effect on small files
+                       -pad to pow of 2 (could be smaller than piece size)
+                               -i.e. BLOCK_SIZE*8 = piece size, but only BLOCK_SIZE+negligible worth of content = 2 blocks != 8
        -fs
                -concat tests
        -tree creation tests
@@ -90,6 +108,7 @@ Stage 1:
 -basic bittorrent functionality
        -BEP_0003
        -BEP_0052
+               -http://bittorrent.org/beps/bep_0052.html
 -magnet link functionality
        -BEP_0009
        -BEP_0010