X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=TODO;h=bd24953de2cffe8a2b5e2bafa86e05b7f9da20be;hb=5f71361ea619c97e77b9c5cd52894d2088d19b08;hp=3abb53ccfa5d5ea0269dc28175e923a45ccad2bb;hpb=fdcf0975268f0f0dc382c8515cd1306d1fa2d2f9;p=quix0rs-apt-p2p.git diff --git a/TODO b/TODO index 3abb53c..bd24953 100644 --- a/TODO +++ b/TODO @@ -1,13 +1,16 @@ -Clean up the khashmir actions. - -The khashmir actions are a mess, and some cleanup is necessary. A lot -of the actions have most of their processing in common, so this code -should be put in functions that all can call. Perhaps creating a -base "RecurringAction" and "StaticAction" would be a good idea, -as then find_node and find_value could use the first, while get_value -and store_value could use the second. Perhaps ping and join actions -should also be created for consistency, and maybe inherit from a -"SingleNodeAction" base class. +Consider what happens when we are the closest node. + +In some of the actions it is unclear what happens when we are one of the +closest nodes to the target key. Do we store values that we publish +ourself? + + +Add all cache files to the database. + +All files in the cache should be added to the database, so that they can +be checked to make sure nothing has happened to them. The database would +then need a flag to indicate files that are hashed and available, but +that shouldn't be added to the DHT. Packages.diff files need to be considered.