OriginProtocol / origin-bridge

We've moved to a monorepo: https://github.com/OriginProtocol/origin/tree/master/infra/bridge
MIT License
15 stars 7 forks source link

Bridge Server compatibility with Ganache and JS-IPFS (used by origin-js) #74

Closed ambertch closed 6 years ago

ambertch commented 6 years ago

Origin-js uses the IPFS node module to instantiate a local ipfs.

When integrating bridge server and ipfs using the above library,

the python IPFS library does a version check when connecting to the daemon (https://github.com/ipfs/py-ipfs-api/blob/master/ipfsapi/client.py#L19) however, the node module versioning is different (https://github.com/ipfs/js-ipfs/blob/master/package.json#L3). When the bridge server tries to connect to JS-IPFS, it encounters an exception:
ipfsapi.exceptions.Error: Unsupported daemon version '[0, 28, 2]' (not in range: [0, 4, 3] – [0, 5, 0])

ambertch commented 6 years ago

via https://github.com/OriginProtocol/bridge-server/pull/78