```bash
+useradd centrifuge
+chown centrifuge:centrifuge /data
+
sudo tee </dev/null /etc/systemd/system/centrifuge.service
[Unit]
Description="Centrifuge systemd service"
@@ -191,18 +216,17 @@ StartLimitIntervalSec=0
Type=simple
Restart=always
RestartSec=10
-User=centrifuge_service
+User=centrifuge
SyslogIdentifier=centrifuge
SyslogFacility=local7
KillSignal=SIGHUP
-ExecStart=/var/lib/centrifuge-data/centrifuge-chain \
+ExecStart=/usr/local/sbin/centrifuge-chain \
--port=30333 \
--rpc-port=9933 \
--ws-port=9944 \
- --unsafe-ws-external \
- --unsafe-rpc-external \
+ --ws-external \
+ --rpc-external \
--rpc-cors=all \
- --rpc-methods=unsafe \
--pruning=archive \
--chain=centrifuge \
--parachain-id=2031 \
@@ -213,10 +237,12 @@ ExecStart=/var/lib/centrifuge-data/centrifuge-chain \
--ws-max-connections=5000 \
--bootnodes=/ip4/35.198.171.148/tcp/30333/ws/p2p/12D3KooWDXDwSdqi8wB1Vjjs5SVpAfk6neadvNTPAik5mQXqV7jF \
--bootnodes=/ip4/34.159.117.205/tcp/30333/ws/p2p/12D3KooWMspZo4aMEXWBH4UXm3gfiVkeu1AE68Y2JDdVzU723QPc \
+ --bootnodes=/dns4/node-7010781199623471104-0.p2p.onfinality.io/tcp/23564/ws/p2p/12D3KooWSN6VXWPvo1hoT5rb5hei5B7YdTWeUyDcc42oTPwLGF2p \
-- \
--chain=polkadot \
--execution=wasm \
- --wasm-execution=compiled
+ --wasm-execution=compiled \
+ --sync=fast
[Install]
WantedBy=multi-user.target
@@ -226,11 +252,24 @@ EOF
+
+You'll have to download the chain specs first:
+
+
+curl -O https://github.com/centrifuge/centrifuge-chain/blob/main/res/westend-alphanet-raw-specs.json
+mv westend-alphanet-raw-specs.json /config/moonbean-dev-relay.json
+curl -O https://github.com/centrifuge/centrifuge-chain/blob/main/res/demo-spec-raw.json
+mv demo-spec-raw.json /config/centrifuge-demo-raw.json
+
+
```bash
+useradd centrifuge
+chown centrifuge:centrifuge /data
+
sudo tee </dev/null /etc/systemd/system/centrifuge.service
[Unit]
-Description="Centrifuge Testnet systemd service"
+Description="Centrifuge Demo testnet systemd service"
After=network.target
StartLimitIntervalSec=0
@@ -238,38 +277,33 @@ StartLimitIntervalSec=0
Type=simple
Restart=always
RestartSec=10
-User=centrifuge_service
+User=centrifuge
SyslogIdentifier=centrifuge_testnet
SyslogFacility=local7
KillSignal=SIGHUP
-ExecStart=/var/lib/algol-data/centrifuge-chain \
+ExecStart=/usr/local/sbin/centrifuge-chain \
--port=30333 \
--rpc-port=9933 \
--ws-port=9944 \
--unsafe-ws-external \
--unsafe-rpc-external \
--rpc-cors=all \
- --rpc-methods=unsafe \
--pruning=archive \
- --chain=algol \
- --parachain-id=2088 \
- --base-path=/data \
+ --chain=/config/centrifuge-demo-raw.json \
+ --parachain-id=2031 \
+ --base-path=/data-testnet/ \
--log=main,info \
--execution=wasm \
--wasm-execution=compiled \
- --ws-max-connections=5000 \
- --bootnodes=/dnsaddr/bootstrap.algol.k-f.dev/p2p/12D3KooWQt8qAmXzgdNRuVKhW1NAdfowhoGC3apycsBYhvehp1mA \
- --bootnodes=/dns4/node-7107773973489594368-0.p2p.onfinality.io/tcp/28330/ws/p2p/12D3KooWHAsVwkowLLnwd9ZRAmNFBdsvFzvB9XS8FhEufhvuvec3 \
- --bootnodes=/ip4/34.141.22.46/tcp/30333/p2p/12D3KooWPdGhxLeQad8qfxr7cPrYGMW7sJhXL4rfjZMMJpWZ1nHd \
- --bootnodes=/ip4/34.141.85.156/tcp/30333/p2p/12D3KooWH8B1nrkNRvKPTuhaaXy244PZoptRzfXPQqVai3bRq4TS \
- --bootnodes=/ip4/34.141.48.250/tcp/30333/p2p/12D3KooWHsA69Fb1HkdWrwrxY3cSga3wWyHnxuk5GeYtCh59XsWB \
+ --bootnodes=/ip4/34.89.150.73/tcp/30333/p2p/12D3KooWHsA69Fb1HkdWrwrxY3cSga3wWyHnxuk5GeYtCh59XsWB \
+ --bootnodes=/ip4/35.198.144.90/tcp/30333/p2p/12D3KooWMJPzvEp5Jhea8eKsUDufBbAzGrn265GcaCmcnp3koPk4 \
+ --bootnodes=/ip4/35.198.98.253/tcp/30333/p2p/12D3KooWHzRutQHbQKWh3Z5BWoXGk5c3gxscxfG57N8fNV6XjVLz \
-- \
--no-telemetry \
--execution=wasm \
--wasm-execution=compiled \
- --chain=/config/rococo-local.json \
- --bootnodes=/dnsaddr/bootstrap-relay.algol.k-f.dev/p2p/12D3KooWABjwDpbaapnTwei9ZhSLMHAWij5oZE4CsbsN8K8q4mYb \
- --bootnodes=/dnsaddr/bootstrap-relay-2.algol.k-f.dev/p2p/12D3KooWRQqyBqsFw8gw2oqZHaiPLyw2jgCyz5jwRMmg3aWr3jP5
+ --chain=/config/moonbean-dev-relay.json \
+ --sync=fast
[Install]
WantedBy=multi-user.target
@@ -278,10 +312,11 @@ EOF