From 8daf7b3165c65a932a7d8eae1f0a640199892ca9 Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Mon, 14 May 2018 20:13:24 +0200 Subject: Only download nodes that we are missing --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 90c17fd..78e8cc4 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,11 @@ Combine opendht with udt. Use opendht to find other peers and udt for communicat Use a merkle tree and when requesting new nodes when connecting, send X latest hashes and other peers can send you where you have missing data and send you it. If all X hashes are wrong, send older hashes. However if we are only using opendht to find other peers, we might as well use https://github.com/DavidKeller/kademlia or https://github.com/ytakano/libcage +## Safe multi-threading SQL handling +Create SQL classes with mutex for performing prepared statements. Currently the database can crasah if DatabaseStorage methods are accessed at the same time +from multiple threads +## Find a way to deal with u64 in sqlite +Used by timestamp and action counter +## Packet sorting +When you get packets from remote peers, you might get NodeAddData before Node, in that case the packets should not be discarded but there should be +a flag for NodeAddData to handle such situations -- cgit v1.2.3