waku-org / nwaku

Waku node and protocol.
Other
183 stars 46 forks source link

chore: Enabling to use a full node for lightpush via rest api without lightpush client configured #2626

Closed NagyZoltanPeter closed 3 weeks ago

NagyZoltanPeter commented 3 weeks ago

Description

This is helper enhancment for testing (rate limit specifically for me) on lightpush... similar to query self store node via REST API. With this change one can issue lightpush request via REST API on a service node having lightpush protocol installed.

In contrast it was needed to run a full node with lightpush service and a light client (configured with the service node peerId) to be usable from REST API. With this change a lightpush service node (with relay of course) can serve such lightpush API request and can relay such messages.

This can help in various way.

Changes

How to test

  1. Run a full node or nwaku-compose with the right image
  2. issue REST /lightpush POST message
  3. check that relayed (can depend on various stuff)

Open question:

github-actions[bot] commented 3 weeks ago

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2626-rln-v1

Built from 9787e539f1a3f4e407b73f64589631d3ccc2895a

github-actions[bot] commented 3 weeks ago

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2626-rln-v2

Built from 9787e539f1a3f4e407b73f64589631d3ccc2895a