richΛrd
4509ade75c
feat: add skipIDontWant and skipPreamble ( #1681 )
2025-09-10 16:27:54 -04:00
vladopajic
582ba7e650
fix(pubsub): use custom conn when message is sent as lower-priority ( #1679 )
2025-09-10 18:34:51 +02:00
Gabriel Cruz
f345026900
fix(linters): use workaround for reviewdog bug ( #1668 )
2025-09-08 14:48:03 +00:00
vladopajic
5d6578a06f
chore: splitRPCMsg improvements ( #1665 )
2025-09-08 11:06:55 -03:00
Gabriel Cruz
9161529c84
fix: pubsub signature verification ( #1618 )
2025-08-14 20:15:02 +00:00
Ivan FB
882cb5dfe3
fix: more secure send loop in yamux and exception-handling-code cleanup in pubsubpeer ( #1579 )
2025-07-24 17:15:59 +00:00
Ivan FB
d08bad5893
fix: memory consumption in yamux and pubsubpeer ( #1570 )
2025-07-24 09:27:45 -04:00
vladopajic
7bdba4909f
chore(PeerTable): add stringification operator ( #1567 )
2025-07-23 10:53:26 +00:00
Gabriel Cruz
80bf27c6bb
fix: typo on startAt ( #1562 )
2025-07-21 16:56:12 +02:00
Farooq
6576c5c3bf
feat: GossipSub v1.4 ( #1448 )
...
Co-authored-by: Richard Ramos <info@richardramos.me >
2025-07-20 18:47:13 +00:00
MorganaFuture
5f256049ab
fix: build failures caused by missing import ( #1541 )
2025-07-17 08:00:45 -04:00
richΛrd
e83bd2d582
feat(gossipsub1.4): adding new attributes and protobuffers ( #1515 )
2025-07-12 16:12:06 +00:00
richΛrd
998bb58aef
feat(gossipsub1_4): preamble store ( #1513 )
2025-07-11 16:48:37 -04:00
vladopajic
13c613c26c
chore: add template newSeqUninit ( #1518 )
2025-07-11 13:19:24 +00:00
vladopajic
e4faec5570
chore: utilizing newSeqUninitialized ( #1510 )
2025-07-10 08:31:53 -03:00
AkshayaMani
64c9cf1b9e
feat(gossipsub): Add support for skipping message insertion into the message cache (Mix protocol integration) ( #1485 )
2025-06-27 17:37:37 -04:00
Ivan FB
08299a2059
chore: Add some more context when an exception is caught ( #1432 )
...
Co-authored-by: richΛrd <info@richardramos.me >
2025-06-12 14:38:25 +00:00
AkshayaMani
c501adc9ab
feat(gossipsub): Add support for custom connection handling (Mix protocol integration) ( #1420 )
...
Co-authored-by: Ben-PH <benphawke@gmail.com >
2025-06-09 13:36:06 -04:00
vladopajic
cabab6aafe
chore(gossipsub): add consts ( #1447 )
...
Co-authored-by: Radoslaw Kaminski <radoslaw@status.im >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-06 14:33:38 +00:00
Radosław Kamiński
141f4d9116
fix(GossipSub): save sent iHave in first element ( #1405 )
2025-06-06 10:27:59 +00:00
Radosław Kamiński
e811c1ad32
fix(gossipsub): save iDontWants messages in the first element of history ( #1393 )
2025-05-29 13:33:51 +01:00
Miran
61429aa0d6
chore: fix import warnings ( #1370 )
2025-05-14 19:08:46 +00:00
Ivan FB
24b284240a
chore: add gcsafe pragma to removeValidator ( #1356 )
2025-05-02 18:39:00 +02:00
vladopajic
e67744bf2a
chore(connmanager): propagate CancelledError ( #1276 )
2025-03-05 17:31:46 +00:00
vladopajic
5843e6fb4f
chore(protocol): handler to propagate CancelledError ( #1275 )
2025-03-05 15:04:29 +00:00
vladopajic
f7daad91e6
chore(protocols): specify raised exceptions (part 2) ( #1268 )
2025-02-28 08:06:51 -04:00
vladopajic
b07ec5c0c6
chore(protocol): list raised exceptions ( #1260 )
2025-02-25 17:33:24 -04:00
vladopajic
f4c94ddba1
chore(dialer): list raised exceptions ( #1264 )
2025-02-24 20:10:20 +01:00
richΛrd
ec43d0cb9f
chore: refactors to remove .closure., .gcsafe for .async. procs, and added callback compatibility to daemonapi ( #1240 )
2025-02-19 15:00:44 +00:00
vladopajic
5d382b6423
style: fix code style with nph ( #1246 )
2025-02-11 15:39:08 +00:00
richΛrd
78a4344054
refactor(pubsub): do not raise exceptions on publish ( #1244 )
2025-02-07 01:30:21 +00:00
richΛrd
d6e5094095
fix(pubsub): revert async: raises: [] annotation for TopicHandler and ValidatorHandler ( #1237 )
2025-01-15 03:35:24 +00:00
richΛrd
483e1d91ba
feat: idontwant on publish ( #1230 )
...
Closes #1224
The following changes were done:
1. Once a message is broadcasted, if it exceeds the threeshold to
consider it a large message it will send an IDONTWANT message before
publishing the message
4f9c21f699/libp2p/protocols/pubsub/gossipsub.nim (L800-L801)
2. Extracts the logic to broadcast an IDONTWANT message and to verify
the size of a message into separate functions
3. Adds a template to filter values of a hashset without modifying the
original
2025-01-14 16:59:38 -04:00
richΛrd
61ac0c5b95
feat(pubsub): add {.async: (raises).} annotations ( #1233 )
...
This PR adds `{.async: (raises).}` annotations to the pubsub package.
The cases in which a `raises:[CatchableError]` was added were due to not
being part of the package and should probably be changed in a separate
PR
2025-01-14 17:01:02 +01:00
Álex
48846d69cb
chore(logs): remove duplicate msg key ( #1180 )
...
* Remove `msg` parameter key in logs.
closes: https://github.com/vacp2p/nim-libp2p/issues/1176
2024-08-14 17:19:54 +02: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
kaiserd
d6feb1bbc2
chore(peer-score): enhance score trace logs cont' ( #1108 )
2024-06-03 14:57:20 +02:00
Ivan FB
3f5b5cee75
chore(peer-scoring): enhance score trace logs ( #1107 )
2024-06-03 12:25:47 +02:00
Jacek Sieka
8a4e8a00a2
Send IDONTWANT before validating message ( #1103 )
2024-06-03 10:34:05 +02:00
kaiserd
0911cb20f4
chore(gossipsub): cleanups ( #1096 )
2024-05-15 18:57:15 +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
diegomrsantos
88e233db81
fix: Asynchronous task [sendMsgSlow()] was cancelled [FutureDefect] ( #1094 )
2024-05-07 15:44:14 +02:00
Jacek Sieka
84659af45b
avoid latency/copy when sending low-priority messages to fast peers ( #1060 )
2024-05-02 12:26:16 +02:00
Jacek Sieka
aef44ed1ce
salt idontwant ( #1090 )
2024-05-02 12:18:55 +02:00
Jacek Sieka
02c96fc003
Improve memory efficiency of seen cache ( #1073 )
2024-05-01 18:38:24 +02:00