Skip to content

ocean.js p2p#151

Open
giurgiur99 wants to merge 2 commits intomainfrom
feat/ocean-js-v7-p2p
Open

ocean.js p2p#151
giurgiur99 wants to merge 2 commits intomainfrom
feat/ocean-js-v7-p2p

Conversation

@giurgiur99
Copy link
Copy Markdown
Contributor

@giurgiur99 giurgiur99 commented Apr 7, 2026

Fixes #149

Changes proposed in this PR:

  • Upgrade @oceanprotocol/lib from v6 to v7.0.0-next.6
  • Allow localhost connections by overriding the connectionGater. The default blocks localhost connections
  • Add transparent P2P support — NODE_URL accepts both HTTP URLs and bare peer IDs, the lib routes automatically
  • Fix v6->v7 API signature changes:
  • initializeCompute: pass consumerAddress string instead of Signer
  • computeStatus: pass Signer instead of address string (now signerOrAuthToken)
  • getDownloadUrl: handle dual return type (string for HTTP, DownloadResponse for P2P)
  • downloadJobResults: use streaming getComputeResult instead of getComputeResultUrl (works for both transports)
  • CI: matrix strategy runs system tests over both HTTP and P2P in parallel

@giurgiur99 giurgiur99 marked this pull request as ready for review April 7, 2026 08:42
Copy link
Copy Markdown
Member

@ndrpp ndrpp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update to use p2p commands from ocean.js

2 participants