★ 5,593⑂ 103👁 15⑃ 21● 12▤ 109
RustCreated 2024-03-07
Download: v1.6.5 - road to riscvv1.6.5 ↓1.6.52026-11-03
+0
Daily
5,593
stars
103
forks
15
watchers
21
prs
12
issues
109
releases

README

node

 Tested Distro/Env
Linux Kernel 6.8  
Ubuntu 24.04  

 Building
Using podman or docker

podman build --tag erlang_builder -f build.Dockerfile
./build.sh


 Testnet

run local testnet with RPC api

point RPC endpoint to localhost
vim /etc/hosts
127.0.0.1 nodes.amadeus.bot

run google chrome with cert verification disabled and CORS disabled
mkdir -p /tmp/chrome_debug
google-chrome  --user-data-dir="/tmp/chrome_debug" --no-first-run --no-default-browser-check \
--ignore-certificate-errors --disable-web-security --unsafely-treat-insecure-origin-as-secure=https://nodes.amadeus.bot

allow listening on port 80 and 443
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=80

run the local testnet
TESTNET=true WORKFOLDER=/tmp/testnet HTTP_IPV4=127.0.0.1 HTTP_PORT=80  ./amadeusd

 inside REPL submit a transfer to self
pk = Application.fetch_env!(:ama, :trainer_pk)
sk = Application.fetch_env!(:ama, :trainer_sk)
Testnet.call(sk, "Coin", "transfer", [pk,"1","AMA"])

 Deploy contract (default account is :trainer_pk)

pk = Application.fetch_env!(:ama, :trainer_pk)
sk = Application.fetch_env!(:ama, :trainer_sk)
Testnet.deploy "/home/user/project/node/contract_samples/riscv/out/counter.elf"
Testnet.call sk, pk, "get", []
Testnet.call sk, pk, "inc", ["2"]


 AutoUpdates + Running as a systemd service


cat  /etc/sysctl.conf
buff up the UDP stack for 1gbps
net.core.wmem_max = 268435456
net.core.rmem_default = 212992
net.core.rmem_max = 268435456
net.core.netdev_max_backlog = 300000
net.core.optmem_max = 16777216
net.ipv4.udp_mem = 3060432 4080578 6120864

 for normal networks: block spoofed UDP packets
net.ipv4.conf.all.rp_filter=1
net.ipv4.conf.default.rp_filter=1
EOT



cat  /etc/security/limits.conf
root hard nofile 1048576
root soft nofile 1048576
 hard nofile 1048576
 soft nofile 1048576
root hard nproc unlimited
root soft nproc unlimited
 hard nproc unlimited
 soft nproc unlimited
root hard memlock unlimited
root soft memlock unlimited
 hard memlock unlimited
 soft memlock unlimited
EOT
cat  /etc/systemd/system.conf
[Manager]
DefaultTasksMax=infinity
DefaultLimitNOFILE=infinity
DefaultLimitNPROC=infinity
DefaultLimitMEMLOCK=infinity
DefaultLimitLOCKS=infinity
EOT
cat  /etc/systemd/user.conf
[Manager]
DefaultTasksMax=infinity
DefaultLimitNOFILE=infinity
DefaultLimitNPROC=infinity
DefaultLimitMEMLOCK=infinity
DefaultLimitLOCKS=infinity
EOT


cat  /etc/systemd/system/amadeusd.service
[Unit]
Description=AmadeusD
After=network-online.target

[Service]
Type=forking
LimitNOFILE=1048576
KillMode=control-group
Restart=always
RestartSec=3
User=root
WorkingDirectory=/root/
Environment="AUTOUPDATE=true"
ExecStart=/usr/bin/screen -UdmS amadeusd bash -c './amadeusd'

[Install]
WantedBy=default.target
EOT

systemctl enable amadeusd
systemctl start amadeusd

screen -rd amadeusd


For non-root change:

WorkingDirectory=/home/youruser
User=youruser



For computor autostart
Environment="COMPUTOR=true"

For computor autostart to be validator
Environment="COMPUTOR=trainer"

Top issues

Latest release

v1.6.5 - road to riscv v1.6.5 2026-11-03
release 1.6.5

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON