Skip to content

Set runOnLimitedConnection: true for sync protocol - #1224

Open
julienmalard wants to merge 2 commits into
orbitdb:mainfrom
julienmalard:patch-3
Open

julienmalard wants to merge 2 commits into
orbitdb:mainfrom
julienmalard:patch-3

Conversation

@julienmalard

Copy link
Copy Markdown
Contributor

No description provided.

aphelionz
aphelionz previously approved these changes Mar 3, 2025
@aphelionz
aphelionz dismissed their stale review March 3, 2025 11:46

whoops! sorry

@haydenyoung

Copy link
Copy Markdown
Member

Looks like test failed with a open leveldb error. Re-ran the test manually and it is succeeding. Do we want to merge or do we want to investigate this leveldb issue further. Looks like it maybe be an inconsistent issue with Level.

@julienmalard

Copy link
Copy Markdown
Contributor Author

@haydenyoung Any chance this could be merged?

@abuvanth

abuvanth commented Apr 10, 2025 •

Copy link
Copy Markdown

what this config runOnLimitedConnection: true do when sync

@julienmalard

Copy link
Copy Markdown
Contributor Author

@abuvanth This will allow OrbitDB to run over circuit relays (essential for most browser-to-browser communication).

@NiKrause

NiKrause commented Apr 10, 2025 •

Copy link
Copy Markdown
Contributor

I found an interesting discussion about the topic: libp2p/js-libp2p#2908

@julienmalard

Copy link
Copy Markdown
Contributor Author

@haydenyoung @haadcode @aphelionz Any chance this could be merged?

@haadcode

haadcode commented Dec 2, 2026

Copy link
Copy Markdown
Member

Is this still valid? Would be happy to accept the PR if it is and rebased against current main (helia has been upgraded a while ago, so would be good if this PR contained only the code change)

@NiKrause

NiKrause commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

I'd say so, if it is related to ipfs/helia#1129
This was fixed in bitswap and is now inside Helia 7 which I ran OrbitDB 4.0.2 tests successfully with. Helia 6 seems inside 4.0.1 if I am not mistaken.

This PR talkes more about running libp2p on limited connections. I personally didn't ran into such issue but might be an issue anyways. It is necessary data can be transferred on limited circuit relay connections which aren't yet upgraded. E.g. for head exchange?

This branch has not been deployed

No deployments
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.

6 participants