Skip to content

Commit 23a11cd

Browse files
nesitorAndres D. Molins
andauthored
Implement Kubo Configuration (#805)
* Feature: Implement Kubo Configuration and increased Kubo container version. * Feature: Upgrade aleph-message version and added 3 new EVM chains. --------- Co-authored-by: Andres D. Molins <[email protected]>
1 parent 7d5583c commit 23a11cd

File tree

10 files changed

+104
-9
lines changed

10 files changed

+104
-9
lines changed

deployment/docker-build/dev/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,20 @@ services:
115115

116116
ipfs:
117117
restart: always
118-
image: ipfs/kubo:v0.34.1
118+
image: ipfs/kubo:v0.35.0
119119
ports:
120120
- "4001:4001"
121121
- "4001:4001/udp"
122122
- "127.0.0.1:5001:5001"
123123
volumes:
124124
- "pyaleph-ipfs:/data/ipfs"
125+
- "./kubo.json:/etc/kubo.json:ro"
125126
environment:
126127
- IPFS_PROFILE=server
127128
networks:
128129
- pyaleph
129-
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate"]
130+
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate",
131+
"--config-file", "/etc/kubo.json"]
130132

131133

132134
networks:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"AutoNAT": {
3+
"ServiceMode": "enabled"
4+
},
5+
"Reprovider": {
6+
"Strategy": "pinned"
7+
},
8+
"Routing": {
9+
"Type": "dhtclient",
10+
"AcceleratedDHTClient": true
11+
},
12+
"Datastore": {
13+
"GCPeriod": "12h"
14+
},
15+
"Swarm": {
16+
"EnableHolePunching":true,
17+
"RelayService": {
18+
"Enabled": false
19+
}
20+
}
21+
}

deployment/docker-build/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,21 @@ services:
4747

4848
ipfs:
4949
restart: always
50-
image: ipfs/kubo:v0.34.1
50+
image: ipfs/kubo:v0.35.0
5151
ports:
5252
- "4001:4001"
5353
- "4001:4001/udp"
5454
- "127.0.0.1:5001:5001"
5555
- "127.0.0.1:8080:8080"
5656
volumes:
5757
- "pyaleph-ipfs:/data/ipfs"
58+
- "./kubo.json:/etc/kubo.json:ro"
5859
environment:
5960
- IPFS_PROFILE=server
6061
networks:
6162
- pyaleph
62-
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate"]
63+
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate",
64+
"--config-file", "/etc/kubo.json"]
6365

6466
postgres:
6567
restart: always

deployment/docker-build/kubo.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"AutoNAT": {
3+
"ServiceMode": "enabled"
4+
},
5+
"Reprovider": {
6+
"Strategy": "pinned"
7+
},
8+
"Routing": {
9+
"Type": "dhtclient",
10+
"AcceleratedDHTClient": true
11+
},
12+
"Datastore": {
13+
"GCPeriod": "12h"
14+
},
15+
"Swarm": {
16+
"EnableHolePunching":true,
17+
"RelayService": {
18+
"Enabled": false
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"AutoNAT": {
3+
"ServiceMode": "enabled"
4+
},
5+
"Reprovider": {
6+
"Strategy": "pinned"
7+
},
8+
"Routing": {
9+
"Type": "dhtclient",
10+
"AcceleratedDHTClient": true
11+
},
12+
"Datastore": {
13+
"GCPeriod": "12h"
14+
},
15+
"Swarm": {
16+
"EnableHolePunching":true,
17+
"RelayService": {
18+
"Enabled": false
19+
}
20+
}
21+
}

deployment/samples/docker-compose/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,20 @@ services:
105105

106106
ipfs:
107107
restart: always
108-
image: ipfs/kubo:v0.34.1
108+
image: ipfs/kubo:v0.35.0
109109
ports:
110110
- "4001:4001"
111111
- "4001:4001/udp"
112112
- "127.0.0.1:5001:5001"
113113
volumes:
114114
- "pyaleph-ipfs:/data/ipfs"
115+
- "./kubo.json:/etc/kubo.json:ro"
115116
environment:
116117
- IPFS_PROFILE=server
117118
networks:
118119
- pyaleph
119-
command: ["daemon", "--enable-pubsub-experiment", "--migrate", "--enable-gc"]
120+
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate",
121+
"--config-file", "/etc/kubo.json"]
120122

121123

122124
networks:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"AutoNAT": {
3+
"ServiceMode": "enabled"
4+
},
5+
"Reprovider": {
6+
"Strategy": "pinned"
7+
},
8+
"Routing": {
9+
"Type": "dhtclient",
10+
"AcceleratedDHTClient": true
11+
},
12+
"Datastore": {
13+
"GCPeriod": "12h"
14+
},
15+
"Swarm": {
16+
"EnableHolePunching":true,
17+
"RelayService": {
18+
"Enabled": false
19+
}
20+
}
21+
}

deployment/samples/docker-monitoring/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,20 @@ services:
107107

108108
ipfs:
109109
restart: always
110-
image: ipfs/kubo:v0.34.1
110+
image: ipfs/kubo:v0.35.0
111111
ports:
112112
- "4001:4001"
113113
- "4001:4001/udp"
114114
- "127.0.0.1:5001:5001"
115115
volumes:
116116
- "pyaleph-ipfs:/data/ipfs"
117+
- "./kubo.json:/etc/kubo.json:ro"
117118
environment:
118119
- IPFS_PROFILE=server
119120
networks:
120121
- pyaleph
121-
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate"]
122+
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate",
123+
"--config-file", "/etc/kubo.json"]
122124

123125
prometheus:
124126
restart: always

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies = [
2828
"aiohttp-jinja2==1.6",
2929
"aioipfs~=0.7.1",
3030
"alembic==1.15.1",
31-
"aleph-message~=1.0.1",
31+
"aleph-message~=1.0.2",
3232
"aleph-nuls2==0.1",
3333
"aleph-p2p-client @ git+https://github.com/aleph-im/p2p-service-client-python@cbfebb871db94b2ca580e66104a67cd730c5020c",
3434
"asyncpg==0.30",

src/aleph/chains/signature_verifier.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ def __init__(self):
3232
Chain.DOT: SubstrateConnector(),
3333
Chain.ECLIPSE: SolanaConnector(),
3434
Chain.ETH: EthereumVerifier(),
35+
Chain.ETHERLINK: EthereumVerifier(),
3536
Chain.FRAXTAL: EVMVerifier(),
37+
Chain.HYPE: EVMVerifier(),
3638
Chain.INK: EVMVerifier(),
39+
Chain.LENS: EVMVerifier(),
3740
Chain.METIS: EVMVerifier(),
3841
Chain.MODE: EVMVerifier(),
3942
Chain.NEO: EVMVerifier(),

0 commit comments

Comments
 (0)