Anthony Laibe
86cf5304b2
fix linter ( #73 )
2021-10-13 14:48:29 +02:00
Richard Ramos
c1bdead94d
revert: utils.GetUnixEpoch()
2021-10-12 09:45:22 -04:00
Richard Ramos
051634c12a
chore: upgrade examples
2021-10-12 09:44:40 -04:00
Richard Ramos
dc52ba182a
refactor: filter
...
- Create a channel when a subscription is created
- Add stop function for protocols
2021-10-11 19:02:25 -04:00
Richard Ramos
6f730abd38
feat: add dockerfile
2021-10-11 13:42:17 -04:00
Richard Ramos
578b40a44e
refactor: extract function to subscribe to topic
2021-10-10 18:53:25 -04:00
Richard Ramos
13aee0b1e0
refactor: change filter function parameters to not use protobuffers
2021-10-10 18:53:25 -04:00
Richard Ramos
8a28978f83
fix: wait until peer is connected to resume history
2021-10-10 11:46:31 -04:00
Richard Ramos
8f87009466
fix: docs
2021-10-10 11:46:23 -04:00
Richard Ramos
4a7779dda1
refactor: remove go-wakurelay-pubsub and update dependencies
2021-10-08 10:46:46 -04:00
Richard Ramos
dbd7a1c2d7
WIP: replace go-wakurelay-pubsub by go-libp2p-pubsub
2021-10-08 10:46:46 -04:00
Richard Ramos
761ae88bbd
fix: remove channel for disconnections
...
Since a subscriber might not be connected always it makes no sense to automatically unsubscribe on disconnet
2021-10-06 15:25:41 -04:00
Richard Ramos
70e301f348
fix: flag names
2021-10-06 14:43:41 -04:00
Richard Ramos
245c01b286
fix: check err on wakunode start
2021-10-06 14:07:46 -04:00
Richard Ramos
1991a54d64
refactor: connectedness
...
Uses libp2p network notifier to determine when a peer connects or disconnects, as well as using the host network peerstore instead of managing out own separate peer map
2021-10-06 14:07:46 -04:00
Richard Ramos
79e21dbb99
refactor: add peers before starting
2021-10-04 22:16:24 -04:00
Richard Ramos
de0b63f4a2
feat: options to generate/specify/load node privatekey
2021-10-04 22:14:38 -04:00
Richard Ramos
f82732cd19
refactor: reorganize wakunode flags in groups
2021-10-04 18:39:03 -04:00
Richard Ramos
a053875e20
feat: use signed peers
2021-10-03 12:25:46 -04:00
Richard Ramos
04e77897aa
fix: update examples
2021-10-01 14:45:25 -04:00
Richard Ramos
a58db1656d
refactor: rendezvous nodes are added to peer store
...
- No need to specify peerIDs in command line flag
- Rendezvous nodes are selected automatically instead of passing them via waku option
2021-10-01 14:45:25 -04:00
Richard Ramos
034656b2c0
refactor: rename protocol variables
2021-10-01 14:45:25 -04:00
Richard Ramos
954f2a0c56
feat: use leveldb for storing peers and clean up periodically older records from rendezvous server ( #56 )
2021-10-01 14:37:52 -04:00
Richard Ramos
70efcd72f3
feat: rendezvous ( #54 )
2021-10-01 13:49:50 -04:00
Richard Ramos
5c9a29524d
feat: add gossipsub peer exchange option to waku node ( #53 )
2021-10-01 13:43:03 -04:00
Richard Ramos
37a01edce4
fix: add context parameter to peer dial ( #59 )
2021-10-01 06:32:15 -04:00
Richard Ramos
c8a83f04de
feat: add dns-discovery flags to wakunode and chat2 example ( #52 )
2021-09-30 19:03:19 -04:00
Richard Ramos
9416077adf
fix: use multiaddres instead of strings
2021-09-27 14:16:06 -04:00
Andrea Maria Piana
cfcfb52a58
[ Fixes : #39 ] Add DNS discovery ( #48 )
...
This commit adds a public method that takes a url and returns a list of
multiaddr.
Once we better understand how to integrate it we can make it so that is
passed as a config when initializing waku, this commit only provides the
basic functionality.
2021-09-27 13:52:56 -04:00
RichΛrd
6c4a74fb9c
fix: check for messages first on filter in case a non null request is being sent ( #50 )
...
* fix: check for messages first on filter in case a non null request is being sent
* fix: clean up logs
* fix: peer lock
2021-09-27 08:47:18 -04:00
Vitaliy Vlasov
67ac969a65
Use peerstore instead of network
2021-09-23 17:38:08 +03:00
Vitaliy Vlasov
a3c7102a34
Fix keepAlive
2021-09-23 17:38:08 +03:00
Richard Ramos
1cf3de3a3f
fix: return
2021-09-23 17:38:08 +03:00
Richard Ramos
4ce04014d1
fix: make resume optional and trigger connect/disconnect when dialing a peer or dropping it
2021-09-23 17:38:08 +03:00
Richard Ramos
cf32e10236
expose function to retrieve list of peers and supported protocols
2021-09-23 17:38:08 +03:00
Richard Ramos
4450e6bba0
adds DialbyPeerID
2021-09-23 17:38:08 +03:00
Richard Ramos
11bf973daf
chore: change log level to reduce noise
2021-09-23 17:38:08 +03:00
RichΛrd
52b46d6869
emit ConnStatus always to get an update when peers change connectivity ( #46 )
...
* emit ConnStatus event always to get an update when peers change
connectivity
* use peers map to determine peer count
2021-09-23 17:38:08 +03:00
RichΛrd
53b3d19948
add peers to ConnStatus ( #45 )
...
* add peers to ConnStatus
* return connected peers and supported protocols
2021-09-23 17:38:08 +03:00
Vitaliy Vlasov
24c7a8e4c6
Use keepAlive for Connectedness events
2021-09-23 17:38:08 +03:00
Richard Ramos
51f220a130
refactor: code duplication
2021-08-31 14:19:49 -04:00
RichΛrd
8eefecd88f
Update README.md
2021-08-25 16:16:14 -04:00
Jakub
d1835fd612
Merge pull request #44 from status-im/ci/add-jenkinsfile
...
ci: add Jenkinsfile that runs lint and test targets
2021-08-16 17:13:09 +02:00
Jakub Sokołowski
e10778c432
ci: add Jenkinsfile that runs lint and test targets
...
This adds a simple `Jenkinsfile` that runs `make lint` and `make test`.
Had to also add a `deps` target that runs `lint-install` to install missing `golangci-lint`.
Jobs folder: https://ci.status.im/job/go-waku/
Resolves: https://github.com/status-im/go-waku/issues/11
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-08-16 12:52:13 +02:00
Andrea Maria Piana
afc8ed6e85
Merge pull request #43 from status-im/chore/add-tests
...
Add tests and lint code
2021-08-16 10:37:02 +02:00
Andrea Maria Piana
b387da9ab4
Add tests and lint code
2021-08-13 13:56:09 +02:00
Richard Ramos
c9d3334f2d
fix: matcher function
2021-07-29 12:35:08 -04:00
Richard Ramos
fd49e33a45
fix: timestamp format and bump go-wakurelay-pubsub
2021-07-29 11:03:30 -04:00
RichΛrd
654f3f8cd4
fix: order of fields of History Response protobuf ( #35 )
2021-07-29 08:43:29 -04:00
RichΛrd
c3ac5ef9c5
feat: Add support for multiple protocol IDs ( #34 )
2021-07-29 08:41:37 -04:00