Merge pull request #156 from Permissionless-Software-Foundation/ct-unstable

Upgrading helia to v4.2.5
This commit is contained in:
Chris Troutner
2024-08-20 07:53:53 -07:00
committed by GitHub
6 changed files with 8393 additions and 25488 deletions
+3 -3
View File
@@ -47,9 +47,9 @@ This web server spins up an embedded IPFS ([Helia](https://github.com/ipfs/helia
## Requirements ## Requirements
- node **^16.20.2** - node **^20.16.0**
- npm **^8.19.4** - npm **^10.8.1**
- Docker **^20.10.8** - Docker **^24.0.7**
- Docker Compose **^1.27.4** - Docker Compose **^1.27.4**
## Installation ## Installation
+8367 -25466
View File
File diff suppressed because it is too large Load Diff
+18 -16
View File
@@ -24,24 +24,26 @@
}, },
"repository": "Permissionless-Software-Foundation/ipfs-service-provider", "repository": "Permissionless-Software-Foundation/ipfs-service-provider",
"dependencies": { "dependencies": {
"@chainsafe/libp2p-gossipsub": "11.0.1", "@chainsafe/libp2p-gossipsub": "13.1.1",
"@chainsafe/libp2p-noise": "14.1.0", "@chainsafe/libp2p-noise": "15.1.1",
"@chainsafe/libp2p-yamux": "6.0.1", "@chainsafe/libp2p-yamux": "6.0.2",
"@helia/unixfs": "3.0.1", "@helia/unixfs": "3.0.7",
"@libp2p/bootstrap": "10.0.7", "@libp2p/bootstrap": "10.1.5",
"@libp2p/circuit-relay-v2": "1.0.13", "@libp2p/circuit-relay-v2": "1.1.5",
"@libp2p/identify": "1.0.6", "@libp2p/identify": "2.1.5",
"@libp2p/keychain": "4.0.7", "@libp2p/keychain": "4.1.5",
"@libp2p/logger": "4.0.5", "@libp2p/logger": "4.0.20",
"@libp2p/tcp": "9.0.7", "@libp2p/tcp": "9.1.5",
"@libp2p/webrtc": "4.0.17", "@libp2p/webrtc": "4.0.34",
"@libp2p/websockets": "8.2.0",
"@multiformats/multiaddr": "12.3.0",
"axios": "0.27.2", "axios": "0.27.2",
"bcryptjs": "2.4.3", "bcryptjs": "2.4.3",
"blockstore-fs": "1.1.8", "blockstore-fs": "2.0.0",
"datastore-fs": "9.1.6", "datastore-fs": "9.1.7",
"glob": "7.1.6", "glob": "7.1.6",
"helia": "2.1.0", "helia": "4.2.5",
"helia-coord": "1.5.8", "helia-coord": "1.5.11",
"jsonrpc-lite": "2.2.0", "jsonrpc-lite": "2.2.0",
"jsonwebtoken": "8.5.1", "jsonwebtoken": "8.5.1",
"jwt-bch-lib": "1.3.0", "jwt-bch-lib": "1.3.0",
@@ -56,7 +58,7 @@
"koa-router": "10.0.0", "koa-router": "10.0.0",
"koa-static": "5.0.0", "koa-static": "5.0.0",
"koa2-ratelimit": "0.9.1", "koa2-ratelimit": "0.9.1",
"libp2p": "1.2.1", "libp2p": "1.9.1",
"line-reader": "0.4.0", "line-reader": "0.4.0",
"minimal-slp-wallet": "5.11.1", "minimal-slp-wallet": "5.11.1",
"mongoose": "5.13.14", "mongoose": "5.13.14",
+1 -1
View File
@@ -15,7 +15,7 @@ RUN apt-get install -y sudo git curl nano gnupg wget
RUN sudo apt-get install -y ca-certificates curl gnupg RUN sudo apt-get install -y ca-certificates curl gnupg
RUN sudo mkdir -p /etc/apt/keyrings RUN sudo mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
RUN sudo apt-get update RUN sudo apt-get update
RUN sudo apt-get install -y nodejs build-essential RUN sudo apt-get install -y nodejs build-essential
+1 -1
View File
@@ -22,7 +22,7 @@ services:
options: options:
max-size: '10m' max-size: '10m'
max-file: '10' max-file: '10'
mem_limit: 4000mb mem_limit: 1000mb
links: links:
- mongo-ipfs-service - mongo-ipfs-service
ports: ports:
+3 -1
View File
@@ -154,7 +154,7 @@ class IpfsAdapter {
// Configure services // Configure services
const services = { const services = {
identify: identify(), identify: identify(),
pubsub: gossipsub({ allowPublishToZeroPeers: true }) pubsub: gossipsub({ allowPublishToZeroTopicPeers: true })
} }
if (this.config.isCircuitRelay) { if (this.config.isCircuitRelay) {
console.log('Helia (IPFS) node IS configured as Circuit Relay') console.log('Helia (IPFS) node IS configured as Circuit Relay')
@@ -254,6 +254,8 @@ class IpfsAdapter {
!this.fs.existsSync(`${IPFS_DIR}/datastore`) && this.fs.mkdirSync(`${IPFS_DIR}/datastore`) !this.fs.existsSync(`${IPFS_DIR}/datastore`) && this.fs.mkdirSync(`${IPFS_DIR}/datastore`)
// !fs.existsSync(`${IPFS_DIR}/datastore/peers`) && fs.mkdirSync(`${IPFS_DIR}/datastore/peers`)
return true return true
} catch (err) { } catch (err) {
console.error('Error in adapters/ipfs.js/ensureBlocksDir(): ', err) console.error('Error in adapters/ipfs.js/ensureBlocksDir(): ', err)