Prem Chaitanya Prathi
2f15576fd4
Merge pull request #2 from waku-org/rebase-from-libp2p
...
rebase from libp2p
v0.11.0
v0.11.0-gowaku
v0.12.0-gowaku
2024-08-09 07:09:22 +05:30
Richard Ramos
fab982a94a
refactor: create MeshPeer function in Pubsub
2024-08-07 10:40:51 +05:30
richΛrd
b12b0e138b
feat: expose router and mesh peers ( #1 )
2024-08-07 10:40:51 +05:30
Steven Allen
19ffbb3a48
Re-enable disabled gossipsub test ( #566 )
...
And change it to take into account the fact that libp2p now trims
connections immediately (when no grace-period is specified) instead of
waiting for a timeout.
2024-08-06 20:43:28 +00:00
Steven Allen
dc33a34d4d
ci: disable testing on macos ( #571 )
...
It appears to be a bit flaky and we have nothing macos specific in this repo.
2024-08-06 20:43:14 +00:00
Piotr Galar
5c9a4d0536
ci: create go-test-config.json
2024-08-06 19:52:49 +00:00
galargh
097b4671b0
chore: staticcheck
2024-08-06 19:52:49 +00:00
galargh
8f56e8c97a
chore: update rand usage
2024-08-06 19:52:49 +00:00
galargh
435b99e317
chore: go fmt
2024-08-06 19:52:49 +00:00
web3-bot
03952ea658
chore: add or force update version.json
2024-08-06 19:52:49 +00:00
web3-bot
ca1b3dabb7
chore: add or force update .github/workflows/tagpush.yml
2024-08-06 19:52:49 +00:00
web3-bot
b32ed641c0
chore: add or force update .github/workflows/release-check.yml
2024-08-06 19:52:49 +00:00
web3-bot
7c54be0278
chore: add or force update .github/workflows/releaser.yml
2024-08-06 19:52:49 +00:00
web3-bot
db70c1d678
chore: add or force update .github/workflows/go-check.yml
2024-08-06 19:52:49 +00:00
web3-bot
88c73f4a89
chore: add or force update .github/workflows/go-test.yml
2024-08-06 19:52:49 +00:00
Sorin Stanculeanu
e508d8643d
added missing Close call on the AddrBook member of GossipSubRouter ( #568 )
2024-07-11 18:25:52 +03:00
Steven Allen
093f13ce16
test: test notify protocols updated ( #567 )
...
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Co-authored-by: gfanton <8671905+gfanton@users.noreply.github.com>
2024-07-11 12:50:34 +00:00
Steven Allen
b23b3ee559
Switch to the new peer notify mechanism ( #564 )
...
1. Only listen for peers added and identify events.
2. Remove the old "Limited" check. Peers only show up as "Connected" if
they have non-limited connections.
3. Don't bother listening for new connections directly and/or
connectivity changes. We'll get a new identify event per new connection
regardless.
fixes #546
2024-07-11 11:46:35 +00:00
Steven Allen
1f5b81fb61
test: use the regular libp2p host ( #565 )
...
This removes dependencies on swarm/testing and the blank host.
1. swarm/testing really shouldn't be used at all except for internal
libp2p stuff.
2. The blank host should only be used in _very_ special cases (autonat,
mostly).
2024-07-11 10:32:18 +00:00
Richard Ramos
2cbb09eac9
refactor: create MeshPeer function in Pubsub
2024-07-03 15:16:59 -04:00
richΛrd
b4513d1544
feat: expose router and mesh peers ( #1 )
2024-06-30 20:54:50 -04:00
Mikel Cortes
8e498e9e96
Missing flood protection check for number of message IDs when handling Ihave messages ( #560 )
...
* check msgIDs in Ihave per topic
* remove coments as suggested
2024-06-27 12:00:36 +03:00
Marco Munizaga
dbd1c9eade
Fix: Own our CertifiedAddrBook ( #555 )
...
* Subscribe to libp2p events to maintain our own Certified Address Book
* Update go version
* Use TestGossipsubStarTopology test instead of new test
* Don't return an error in manageAddrBook
* Return on error while subscribing
* Use null resource manager so that the new IP limit doesn't break tests
* Mod tidy
2024-05-20 17:13:30 -07:00
Hlib Kanunnikov
7038c82c21
chores: bump go-libp2p ( #558 )
2024-05-20 16:20:16 -07:00
Marco Munizaga
3aa9d671ae
fix: Don't bother parsing an empty slice ( #556 )
2024-05-02 09:41:05 -07:00
Marco Munizaga
c0a528ee7b
Replace fragmentRPC with appendOrMergeRPC ( #557 )
...
This will allow us to add more logic around when we split/merge
messages. It will also allow us to build the outgoing rpcs as we go
rather than building one giant rpc and then splitting it.
2024-05-02 09:40:54 -07:00
GitHub
048a4d30d0
chore: Update .github/workflows/stale.yml [skip ci]
2024-01-31 16:51:10 +00:00
Sukun
b5ee222289
chore: update go-libp2p to v0.32 ( #548 )
2023-11-01 14:32:36 +01:00
Sukun
d13e24ddc9
remove usage of deprecated peerid.Pretty method ( #542 )
2023-09-14 11:11:11 +03:00
vyzo
825d5e3c7d
Revert "fix: topicscore params can't be set for dynamically subscribed topic ( #540 )" ( #541 )
...
This reverts commit aa5fd79a75f7480be94380bc3e617767e71573e6.
2023-08-26 18:26:28 +03:00
Prem Chaitanya Prathi
aa5fd79a75
fix: topicscore params can't be set for dynamically subscribed topic ( #540 )
...
* fix: topicscore params can't be set for a topic subscribed after gossipsub is initialized
* chore:address review comments
2023-08-19 12:21:43 +03:00
dependabot[bot]
cef801641c
bump golang.org/x/net from 0.4.0 to 0.7.0 ( #520 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-15 12:01:28 +03:00
GitHub
6d73cd4b56
chore: Update .github/workflows/stale.yml [skip ci]
2023-06-28 08:53:43 +00:00
GitHub
7f9a7e5319
chore: Update .github/workflows/stale.yml [skip ci]
2023-06-14 09:04:40 +00:00
Nishant Das
340387ef3f
Fix Memory Leak In New Timecache Implementations ( #528 )
...
* fix bug
* add for last seen cache
2023-03-15 13:52:01 +02:00
vyzo
829f9026a3
Default validator support ( #525 )
...
* add default validator support
* add an implementation for basic seqno as nonce validation
* missing return
* the nonce belongs to the origin peer
* add note about rust predicament
* add seqno validator tests
* minor test tweak, ensure at least 1ms before replay
2023-03-01 16:15:54 +02:00
vyzo
56c0e6c5c9
Refactor timecache implementations ( #523 )
...
* reimplement timecache for sane and performant behaviour
* remove seenMessagesMx, take advantage of new tc api
* fix timecache tests
* fix typo
* store expiry, don't make life difficult
* refactor common background sweep procedure for both impls
* add godocs to TimeCache
2023-02-21 21:13:13 +02:00
Hlib Kanunnikov
3dbc2fd5ba
fix(timecache): remove panic in first seen cache on Add ( #522 )
2023-02-21 13:10:42 +02:00
RichΛrd
cda3df70f4
chore: update go version and dependencies ( #516 )
2023-02-15 21:48:58 +02:00
Marco Munizaga
a14aca16fa
chore: update to go-libp2p v0.25 ( #517 )
...
* Update to go-libp2p v0.25
* Use go 1.19
2023-02-10 17:27:48 +01:00
Mohsin Zaidi
973fef56e1
feat: expire messages from the cache based on last seen time ( #513 )
...
* feat: expire messages from the cache based on last seen time
* chore: minor renaming
* fix: messages should not be found after expiration
* chore: editorial
* fix: use new time cache strategy consistently
* fix: default to old time cache and add todo for background gc
2023-01-24 02:02:44 +02:00
Louis Thibault
3d2eab3572
Add docstring for WithAppSpecificRPCInspector ( #510 )
2022-12-01 19:56:37 +02:00
Yahya Hassanzadeh
d3f151c224
Adds Application Specific RPC Inspector ( #509 )
...
* Update go.mod
* Refactor GossipSub Construction (#1 )
* Enables non-atomic validation for peer scoring parameters (#499 )
* decouples topic scoring parameters
* adds skiping atomic validation for topic parameters
* cleans up
* adds skip atomic validation to peer score threshold
* adds skip atomic validation for peer parameters
* adds test for non-atomic validation
* adds tests for peer score
* adds tests for peer score thresholds
* refactors tests
* chore: Update .github/workflows/stale.yml [skip ci]
* adds with gossipsub tracker
Co-authored-by: libp2p-mgmt-read-write[bot] <104492852+libp2p-mgmt-read-write[bot]@users.noreply.github.com>
* decouples options
* fixes conflict
* reverts back module
* fixes peer score helper
* Adds send control message to gossipsub router (#2 )
* adjusts libp2p version (#3 )
* Update go.mod (#4 )
* adds app specific rpc handler
* Create ci.yml (#5 )
* Create Makefile (#7 )
* Revert "Merge branch 'yahya/gossipsub-router-interface'" (#6 )
This reverts commit 1c91995b7fbce0e4b9c5990c5bfda0d555267182.
* Update ci.yml (#9 )
* Revert "Merge branch 'master' into yahya/adds-rpc-inspector"
This reverts commit 352d7471c58580480b7f6592001bc3e9b910fa77.
* Revert "Merge remote-tracking branch 'origin/yahya/adds-rpc-inspector' into yahya/adds-rpc-inspector"
This reverts commit 586c5cb6eb2a971a1590ea32050de139316984d2.
* Revert "Merge branch 'master' into yahya/adds-rpc-inspector"
This reverts commit 2e13ee8b95dded5a3401dd86f952fae3419bd86b.
* moves app specific inspector to pubsub
* removes option from gossipsub
* moves app specific rpc inspector up
* refactors app specific to return an error
Co-authored-by: libp2p-mgmt-read-write[bot] <104492852+libp2p-mgmt-read-write[bot]@users.noreply.github.com>
2022-12-01 08:10:07 +02:00
Viacheslav
972f19967f
chore: ignore signing keys during WithLocalPublication publishing ( #497 )
2022-11-20 16:30:53 +02:00
Hlib Kanunnikov
76124145d0
improve handling of dead peers ( #508 )
2022-11-20 13:38:53 +02:00
Hlib Kanunnikov
aed7fc42c1
perf: use pooled buffers for message writes ( #507 )
2022-11-19 16:59:45 +02:00
Hlib Kanunnikov
9c56b2deca
perf: use msgio pooled buffers for received msgs ( #500 )
2022-11-19 15:19:10 +02:00
Yahya Hassanzadeh
1e161006c4
Enables injectable GossipSub router ( #503 )
...
* adds with gossipsub tracker
* renames and add godoc
2022-11-02 06:53:50 +02:00
libp2p-mgmt-read-write[bot]
01ab84a809
chore: Update .github/workflows/stale.yml [skip ci]
2022-09-19 13:41:37 +00:00
Yahya Hassanzadeh
8866ca88a1
Enables non-atomic validation for peer scoring parameters ( #499 )
...
* decouples topic scoring parameters
* adds skiping atomic validation for topic parameters
* cleans up
* adds skip atomic validation to peer score threshold
* adds skip atomic validation for peer parameters
* adds test for non-atomic validation
* adds tests for peer score
* adds tests for peer score thresholds
* refactors tests
2022-09-08 08:20:23 +03:00