185 Commits

Author SHA1 Message Date
shashankshampi
49ce782eed added alex changes 2024-10-26 11:46:17 +05:30
shashankshampi
1bfdded523 added documentation as per request 2024-10-25 11:14:17 +05:30
shashankshampi
df674d586a another set of review comment fix 2024-10-24 19:16:13 +05:30
shashankshampi
aa34c7f553 fix in last test 2024-10-24 16:54:19 +05:30
shashankshampi
be818b90b0 Remove tests/pubsub/testgossipmembership from the PR 2024-10-24 13:45:30 +05:30
shashankshampi
a7e80de4d8 rebase 2024-10-24 13:42:51 +05:30
shashankshampi
d80abe09ae review comment fix 2024-10-22 10:58:42 +05:30
shashankshampi
44dd7d1c3c added updated logic to use common handler and create peers nodes as real instead of simulations 2024-10-21 16:35:17 +05:30
shashankshampi
e68685ccd7 added part 2 PR in same 2024-10-16 15:25:27 +05:30
shashankshampi
cc8e97636f removed PubSub in sunscribe 2024-10-10 19:19:18 +05:30
shashankshampi
567a456200 Merge branch 'block6Test' into block6Test2 2024-10-10 19:18:23 +05:30
shashankshampi
ff6b274f5b review comment fix 2024-10-10 19:16:04 +05:30
shashankshampi
cb7ccaee31 updated as per review comment 2024-10-10 11:30:03 +05:30
shashankshampi
a12b56c512 Merge branch 'block6Test' into block6Test2 2024-10-10 11:03:20 +05:30
shashankshampi
d594c049b8 addressed wornderful review comments 2024-10-10 11:00:42 +05:30
shashankshampi
2d38e8abfc fix in test logic for multiple peers join and leave topic simultaneously 2024-10-08 16:17:42 +05:30
shashankshampi
806592ddbb PR update 2024-10-07 09:07:54 +05:30
shashankshampi
89473da8bc TC fix 2024-10-06 01:45:13 +05:30
shashankshampi
e10e4d058b rebase with block6Test 2024-10-06 01:30:31 +05:30
shashankshampi
f42a763708 added assertion for handle SUBSCRIBE to the topic 2024-10-03 16:39:04 +05:30
shashankshampi
19d3ead6b8 removed unwanted check 2024-10-03 16:04:22 +05:30
shashankshampi
46b712531d removed internal subscribe and unsubscribe test 2024-10-03 15:03:09 +05:30
shashankshampi
f0c8c5b6e6 review comments to remove unwanted comments 2024-10-03 15:00:17 +05:30
shashankshampi
25df50d691 updtaed as per review comment 2024-10-03 13:07:24 +05:30
shashankshampi
eb2f6bf346 test(gossipsub): Test cases covering subscribe and unsubscribe Events
added test wrt subscribe and unsubscribe

added tests/pubsub/testgossipinternal2 file

linters

feat: rendezvous refactor (#1183)

Hello!

This PR aim to refactor rendezvous code so that it is easier to impl.
Waku rdv strategy. The hardcoded min and max TTL were out of range with
what we needed and specifying which peers to interact with is also
needed since Waku deals with peers on multiple separate shards.

I tried to keep the changes to a minimum, specifically I did not change
the name of any public procs which result in less than descriptive names
in some cases. I also wanted to return results instead of raising
exceptions but didn't. Would it be acceptable to do so?

Please advise on best practices, thank you.

---------

Co-authored-by: Ludovic Chenut <ludovic@status.im>

refactor and suite name refactor

chore(ci): Enable S3 caching for interop (#1193)

- Adds our S3 bucket for caching docker images as Protocol Labs shut
down their shared one.
- Remove the free disk space workaround that prevented the jobs from
failing for using too much space for the images.

---------

Co-authored-by: diegomrsantos <diego@status.im>

PR review comment changes
2024-10-01 17:28:39 +05:30
shashankshampi
fda0d2b6e3 test(gossipsub): import optimization 2024-10-01 17:22:47 +05:30
shashankshampi
2923a2d280 test(gossipsub): added test for membership for join and leave topic 2024-10-01 17:18:08 +05:30
shashankshampi
1c2e221d75 refactor and suite name refactor 2024-09-27 10:16:49 +05:30
shashankshampi
5790b6f428 linters 2024-09-26 13:26:17 +05:30
shashankshampi
dc7f8d4317 added tests/pubsub/testgossipinternal2 file 2024-09-26 11:33:25 +05:30
shashankshampi
871efab571 added test wrt subscribe and unsubscribe 2024-09-26 11:28:07 +05:30
diegomrsantos
68306cf1f1
chore: fix devel compilation issues (#1195)
- fixes https://github.com/vacp2p/nim-libp2p/issues/1194.
- fixes ambiguous `KeyError`
- removes an unnecessary type param for `newSeqWith`
- fixes tests for `safeConvert`

The main fixes relate to Nim 2.2 being more strict and not accepting
calls with a wrong number of type parameters.
2024-09-19 11:35:50 +00:00
gabrielmer
a60f0c5532
feat: adding onValidated observer (#1128)
### Description

Adding an `onValidated` observer which will run every time a message is
received and validated. This comes from the necessity of precisely track
message deliveries and network activity.

`onRecv` observers run before any check is performed on the received
message, which means that it runs every time a duplicate or invalid
message arrives, which is inefficient and inaccurate for our purpose of
tracking only received, unique and valid messages. Therefore, adding
this extra option of running an observer for every message after all
validation checks pass.
2024-08-01 18:50:13 +03:00
diegomrsantos
78f0855419
feat: add maxSize to TimedCache (#1132) 2024-07-01 22:00:51 +02:00
diegomrsantos
2195313dba
feat: iDontWant is sent only for gossipsub 1.2 or higher (#1135) 2024-06-25 19:32:08 +02:00
diegomrsantos
7498258f7c
fix(gossipsub): pubsubpeer is created with wrong gossipsub version (#1116) 2024-06-13 12:25:48 +02:00
diegomrsantos
96bfefc928
feat(gossipsub): support version 1.2.0 (#1106) 2024-06-12 15:46:47 +02:00
diegomrsantos
dc83a1e9b6
chore(formatting): format the whole codebase using nph 0.5.1 (#1118) 2024-06-11 17:18:06 +02:00
Jacek Sieka
21cbe3a91a
chore: cleanups (#1092)
* remove cruft
* remove redundant error handling (reduces warnings)
* remove redundant copying
2024-05-08 14:33:26 +02:00
Jacek Sieka
02c96fc003
Improve memory efficiency of seen cache (#1073) 2024-05-01 18:38:24 +02:00
Álex Cabeza Romero
458b0885dd
fix(issue-1052): Single topic for RPC Message (#1061) 2024-03-25 12:06:34 +01:00
Jacek Sieka
a2027003cd
Avoid unnecessary rate limit message copy (#1067) 2024-03-21 13:11:40 +00:00
Jacek Sieka
ae13a0d583
Send priority with queue fix (#1051)
Co-authored-by: Diego <diego@status.im>
2024-03-05 15:05:21 +00:00
Etan Kissling
28609597d1
add {.async: (raises).} to libp2p/stream modules (#1050)
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
Co-authored-by: Jacek Sieka <jacek@status.im>
2024-03-05 07:06:27 +00:00
Diego
c5e4f8e12d
Revert "feat: message prioritization with immediate peer-published dispatch and queuing for other msgs (#1015)"
This reverts commit fe4ff798856f0fd2e9be75b61a7f461f5d8d3564.
2024-02-19 13:47:37 +01:00
diegomrsantos
fe4ff79885
feat: message prioritization with immediate peer-published dispatch and queuing for other msgs (#1015) 2024-02-16 10:54:16 +01:00
diegomrsantos
e0f70b7177
improvement: enhanced checkExpiring macro with custom timeout (#1023) 2024-02-09 11:51:27 +01:00
Jacek Sieka
2ede0fa40c
remove redundant gcsafe annotations (#999) 2023-12-05 08:05:32 +01:00
diegomrsantos
ebef85c9d7
Rate limit fixes (#965) 2023-11-09 14:20:28 +01:00
diegomrsantos
3fc1236659
Revert "Prevent concurrent IWANT of the same message (#943)" (#977) 2023-11-03 15:24:27 +01:00