239 Commits

Author SHA1 Message Date
Arnaud
8cd70ad71f
Call random2 shuffle 2026-07-31 11:26:20 +04:00
Arnaud
1bb5236e26
Cleanup 2026-07-31 11:24:42 +04:00
Arnaud
007cb3d4c3
Fix nimble syntax 2026-07-31 11:24:32 +04:00
Arnaud
8f8cd2afc1
Restore shuffle function 2026-07-31 11:21:48 +04:00
Arnaud
69898a02dd
Set upper band version to protobuf_serialization 2026-07-31 11:21:39 +04:00
Arnaud
9018d58658
Provide getField for SignedPeerRecord removed from libp2p 2026-07-31 10:52:23 +04:00
Arnaud
d426e932e3
Update encode api 2026-07-31 10:31:26 +04:00
Arnaud
f69e393380
Update dependencies to match libp2p 2.2.0 2026-07-31 10:31:14 +04:00
Arnaud
d13c1c1588
Cleanup 2026-06-10 10:52:05 +04:00
Arnaud
f205d9ce34
Update to libp2p 2.0.0 2026-06-10 10:47:35 +04:00
Arnaud
6179bfb23f
Remove extra comment 2026-06-02 12:19:18 +04:00
Arnaud
1cef2da817
Update libp2p version 2026-06-02 11:58:53 +04:00
Arnaud
d02670d6b0
feat: client mode (#115)
* Add client mode in findNode

* Remove clientMode checking in addProvider

* Add clientMode check over TalkProtocol

* Fix client mode checking

* Add register talk protocol unicity check

* Add future callback to prevent unbound growth

* Fix PR reviews

* Use DhtMode

* Add clientMode in the Message

* Fix minor issues

* Add logs

* Switch to Nim 2.2.10 on CI

* Add client mode even when the value is false

* Move the client mode check at the beginning of the proc

* Increment version

* Replace uint64 by uint32
v0.6.3
2026-05-14 10:04:27 +04:00
Arnaud
1af8dcf504
Bump version (#114) v0.6.2 2026-04-24 20:34:02 +04:00
Arnaud
3a6a3e771a
Fix crash (#113) 2026-04-24 18:33:31 +04:00
Arnaud
67dbc3fe13
Update to 0.6.1 (#112) v0.6.1 2026-04-21 15:28:23 +04:00
Arnaud
64091a17ee
chore: update nim 2.2.8 (#111)
* Update to 2.2.8

* Reduce chronicles requirement version

* Restore Nim 2.2.4 in nimble

* Update ci

* Update ci version

* Try to remove windows

* Restore previous action

* Try to upgrade nimble version

* Try to fix dependencies issue

* Try to downgrade nimble

* Try 0.20.0

* Add nimble lock

* Remove nimble custom install

* Trying something

* Fix syntax

* debug

* Restore dependencies version and update chronos upper bound version

* Remove debug statements

* Remove debug statements

* Remove debug statements

* Update codexdht/private/eth/p2p/discoveryv5/providers/maintenance.nim

Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>

* Update codexdht/private/eth/p2p/discoveryv5/providers/maintenance.nim

Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>

* Refactor to use questionable

* Revert unneeded changes

* Remove spaces

---------

Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
2026-04-21 15:25:19 +04:00
Chrysostomos Nanakos
754765ba31
chore: orc support (#110)
Support ORC memory model (https://github.com/logos-storage/logos-storage-nim-dht/issues/109)

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
2025-12-23 23:23:31 +02:00
Arnaud
99884b5971
Rename Codex to Logos Storage (#108) 2025-12-15 13:46:04 +01:00
Jacek Sieka
6c7de03622
chore: bump stew et al (#107)
* fix use of deprecated imports
* bump stew
* `results` is its own package
* drop protobuf_serialization
* force leveldb version
2025-12-11 13:47:10 +01:00
Eric
f6eef1ac95
Merge pull request #104 from codex-storage/update-to-nim-2-x
Update to nim 2 x
0.5.0
2025-02-14 12:01:54 +11:00
Arnaud
fb17db8187
Update dependencies versions 2025-02-13 20:54:49 +01:00
Eric
d435c6945f
Merge pull request #105 from codex-storage/fix/deps/2.0-deps
fix(deps): remove deps pinned to commit hash
2025-02-13 15:25:50 +11:00
Eric
89d22c156e
bump nimcrypto 2025-02-13 15:07:51 +11:00
Eric
ee33946afb
bump nimcrypto 2025-02-13 12:19:43 +11:00
Eric
c777106e7f
set non-major range for remaining deps 2025-02-13 12:15:22 +11:00
Eric
14d4dd97e9
toBytes -> toBytesBE 2025-02-13 12:15:00 +11:00
Eric
a9e17f4a33
remove nim 1.6 from ci 2025-02-13 12:09:50 +11:00
Eric
bc27eebb85
fix pinned deps
Leaving nim-datastore as a commit hash until it has a relevant release tag
2025-02-13 12:08:09 +11:00
Ben
0f67d21bbc
updates nim-datastore 2025-02-10 11:25:40 +01:00
Arnaud
4bd3a39e00
Update to Nim 2.0.14 2025-01-07 10:51:55 +01:00
Arnaud
5f22be0420
Remove useless comment 2024-12-18 10:52:06 +01:00
Arnaud
4eb4e9126a
Use IpAddress instead of ValidAddress; remove unused import 2024-12-18 10:50:02 +01:00
Arnaud
5320e8c81e
Remove .lock and file and direct dependency to nim-results 2024-12-10 10:05:59 +01:00
Arnaud
cc54a4f0ec
Set dependencies versions and commit hashes and introduce nimble.lock 2024-12-09 18:57:41 +01:00
Arnaud
e7e45de75f
Nim 2 config auto generated 2024-12-09 18:57:03 +01:00
Arnaud
a3f203bbea
Add nimbledeps to gitignore 2024-12-09 18:56:18 +01:00
Arnaud
de39c2006e
Add Nim version 2.0.12 to CI matrix 2024-12-09 12:56:14 +01:00
Arnaud
cafb6ffe53
Update version 2024-12-09 12:55:24 +01:00
Arnaud
570fb9a936
Update dependencies 2024-12-09 12:48:03 +01:00
Arnaud
9fdf0eca8a
Add Nim 2.x specific configuration 2024-12-09 12:47:35 +01:00
Arnaud
d73dc48515
Add pragma for exception raises 2024-12-09 12:47:08 +01:00
Csaba Kiraly
57f4b6f7cb
Merge pull request #103 from codex-storage/fix-randomNodes
fix potential infinite loop in randomNodes
2024-10-18 20:45:49 +02:00
Csaba Kiraly
ee4e2102d9
Merge pull request #99 from codex-storage/fix-removal
add link reliability metrics, fix aggressive node removal on first packet loss
2024-10-18 20:14:23 +02:00
Csaba Kiraly
a6cfe1a084
fix potential infinite loop in randomNodes
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-10-17 12:38:54 +02:00
Csaba Kiraly
1a344f1fd7
log reliability based on loss statistics
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-10-15 18:17:49 +02:00
Csaba Kiraly
fee5a9ced2
set NoreplyRemoveThreshold to 0.5
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-10-14 15:35:15 +02:00
Csaba Kiraly
6310c50ce0
introduce NoreplyRemoveThreshold
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

# Conflicts:
#	codexdht/private/eth/p2p/discoveryv5/protocol.nim
2024-10-14 15:35:10 +02:00
Csaba Kiraly
7507e99c96
register "not seen" when missing replies
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-10-14 15:33:34 +02:00
Csaba Kiraly
02bc12e639
change node seen flag to an exponential moving average
keep defaults as before

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>

# Conflicts:
#	codexdht/private/eth/p2p/discoveryv5/node.nim
#	codexdht/private/eth/p2p/discoveryv5/routing_table.nim
2024-10-14 15:33:29 +02:00