Commit Graph

10135 Commits

Author SHA1 Message Date
epiphany
c5c5a5400a fu: rename put argument from file to path 2025-07-17 10:06:01 +03:00
epiphany
9a148af7cb fud: better handle reply error in fetch_nodes() 2025-07-17 10:06:01 +03:00
epiphany
8660540b97 dht: fix get_channel() holding a write lock to the channel cache for too long 2025-07-17 10:06:01 +03:00
epiphany
ba84e53254 fud, fu, geode: allow downloading a subset of files from a directory
This also introduces "scraps" in the sled database, which are chunks that contains both data the user wants and data the user does not want. Those chunks happen because files (in fud directories) are not aligned with chunks, so they can contain the data of multiple files.

After you download a chunk, fud checks that all bytes of it was written to the filesystem, if not that chunk will be saved as a scrap in sled. It's useful for a few things:

1. You don't download that chunk again later
2. You can still verify integrity, even if you did not write the full chunk into your downloaded files
3. You can seed that chunk (once partial seeding is implemented, which is currently not the case)

They are automatically removed from sled once they are not needed anymore (the fud resource is removed, or the chunk was rewritten to the filesystem, and this time it was fully written).

Those scraps are a concept in fud, not in geode.
2025-07-17 10:06:01 +03:00
darkfi
4c8e5822cb contrib/dependency_setup.sh: if none of sudo or doas exist, enter error and exit. 2025-07-17 10:05:57 +03:00
darkfi
b1b442e3c3 contrib/dependency_setup.sh: added doas support for openbsd (or any other that use it) 2025-07-17 10:05:43 +03:00
dasman
ad3d4fb54f darkirc: bugfix where nicks were kept the same in queue despite /nick command 2025-07-11 02:48:38 +03:00
darkfi
2d5350c225 dnet/doc: make README more beginner friendly 2025-07-10 21:30:33 +02:00
darkfi
e47b29c970 contrib: script to sample 20 mins of battery status from android app 2025-07-10 15:52:34 +02:00
oars
07d2b1a630 bin/dnet: dnet improvements
- fix dnet crash when the analyzed service is shutdown
- add default config for darkfid and fud
- send dnet switch off rpc message when dnet tui is closed
2025-07-08 11:49:46 +03:00
skoupidi
105ec29709 net: minor style formatting 2025-07-07 18:10:53 +03:00
oars
62a35549fe net/tests: add tests for handling of invalid messages 2025-07-07 17:53:09 +03:00
oars
525f5ef44e net: set metering threshold config and message max bytes size config for the basic protocols messages
- set a maxmium limit on values of max field of GetAddrMessage to u8::MAX, this means the maximum size of addrs Vec in AddrsMessage will be u8::MAX * 2.
       this will help us to set MAX_BYTES for AddrsMessage
2025-07-07 17:53:09 +03:00
oars
c183c6f377 net,bin/lilith: allow localhost to be blacklisted in localnet mode, this will allow us to test banning/blacklisting features 2025-07-07 17:53:09 +03:00
oars
cfeb874fda net: configure maximum message name length to prevent possible dos vector 2025-07-07 17:53:09 +03:00
oars
bafd7c4089 script: node metering script to collect and analyze how many messages of each type are received in a 10 sec span 2025-07-07 17:53:03 +03:00
skoupidi
569cbb326a doc/misc/nodes/nym-guide: minor formatting and clippy 2025-07-07 14:10:56 +03:00
oars
c7173a72da doc: guide to setup nym outbound nodes and a nym network requester 2025-07-07 13:48:17 +03:00
oars
0d852630eb darkirc, darkfid, taud, fud configs: add default nym socks5 proxy url 2025-07-07 13:48:17 +03:00
oars
88285ba96d net: add support for socks5 transport mixing with nym socks5 proxy 2025-07-07 13:48:17 +03:00
oars
1650037662 doc/src/misc/nodes: update docs with change of transport_mixing boolean to mixed_transports list 2025-07-07 13:48:11 +03:00
oars
a29f9b40a6 darkirc, darkfid, taud, damd configs: change boolean transport_mixing field to mixed_transport list 2025-07-07 13:48:11 +03:00
oars
9743cc1d41 net: change transport_mixing into a list of transports to be mixed allowing control of the specific transports we want to be mixed 2025-07-07 13:48:05 +03:00
oars
cf436360bd net/protocol_address: filter out transports not meant to be shared like Socks5 and Socks5+tls 2025-07-07 12:01:33 +03:00
epiphany
192a854d2e dht: add geode feature 2025-07-04 13:10:49 +02:00
epiphany
488029053d fud: remove dht disconnect_task in main 2025-07-03 03:01:51 +02:00
epiphany
c5ad315674 dht: add info log on announce 2025-07-03 02:40:33 +02:00
epiphany
0c69ae0d22 dht, fud: remove disconnect_task 2025-07-03 02:40:33 +02:00
darkfi
5a92b05b75 app: disable miniquad's panic_hook override using new conf setting 2025-06-30 12:38:53 +02:00
darkfi
e8f880d303 app: add missing ui/baseedit/ containing base UI editor stuff 2025-06-29 14:38:32 +02:00
darkfi
b1692e141b app: fix broken android build 2025-06-29 14:38:09 +02:00
darkfi
72c1cff8b4 app: cargo fmt 2025-06-29 11:04:28 +02:00
darkfi
53ca281102 app: fix ALL warnings ;) 2025-06-29 11:04:28 +02:00
skoupidi
b76da20baf darkirc: chore clippy 2025-06-28 17:17:03 +03:00
skoupidi
b6a6cb3e22 darkfid: chore clippy 2025-06-28 17:16:50 +03:00
skoupidi
0eb5e08f1e drk: chore clippy 2025-06-28 17:16:36 +03:00
skoupidi
464258698d explorer: chore clippy 2025-06-28 17:16:20 +03:00
skoupidi
0f82f2fb4f fud: chore clippy 2025-06-28 17:16:03 +03:00
skoupidi
a55471cbcf genev: chore clippy 2025-06-28 17:15:52 +03:00
skoupidi
d40fc89a2d lilith: chore clippy 2025-06-28 17:15:40 +03:00
skoupidi
f7439e8e6b minerd: chore clippy 2025-06-28 17:15:08 +03:00
skoupidi
ae5d823b7a tau: chore clippy 2025-06-28 17:14:35 +03:00
skoupidi
3a40b4af3b vanityaddr: chore clippy 2025-06-28 17:14:22 +03:00
skoupidi
fc58c0815c zkas: chore clippy 2025-06-28 17:14:10 +03:00
skoupidi
99fad7773c src|tests|example: chore clippy 2025-06-28 17:13:23 +03:00
skoupidi
941d7a0666 event_graph: chore clippy 2025-06-28 17:11:19 +03:00
skoupidi
00e9d7cff3 blockchain: chore clippy 2025-06-28 17:10:53 +03:00
skoupidi
ea6139cead net: chore clippy 2025-06-28 17:09:57 +03:00
skoupidi
400bc43e24 runtime: chore clippy 2025-06-28 17:09:03 +03:00
skoupidi
6c89d05770 sdk: chore clippy 2025-06-28 17:07:52 +03:00