Skip to content
forked from getcanoe/canoed

Daemon for the Canoe Nano wallet, written in Nodejs

Notifications You must be signed in to change notification settings

schott12521/canoed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canoed

Canoed is a backend for the Canoe RaiBlocks wallet. It uses a rai_node and creates a middle layer for mediating RPC calls, holding external state, forwarding blocks over MQTT and various other things Canoe needs to be done on the server. It uses a runing rai_node, Redis, PostgreSQL and VerneMQ.

Nodejs

Canoed was first written in Nim, a modern high performance language that produces small and fast binaries by compiling via C. I love Nim, but we switched to Nodejs because there is no properly working MQTT library in Nim. The code style is fairly plain vanilla.

Running Canoed

It's the standard:

npm install
./canoed

See source code to find the default canoed.conf JSON configuration.

Adding a systemd service

This presumes you already have a rai_node.service defined according to the wiki page.

Create /etc/systemd/system/canoed.service:

[Unit]
Description=Canoed
Documentation=https://github.com/gokr/canoed
After=network.target httpd.service rai_node.service

[Service]
User=canoed
WorkingDirectory=/home/canoed
ExecStart=/home/canoed/canoed/canoed
KillMode=mixed
KillSignal=SIGTERM
Restart=always
RestartSec=2s
NoNewPrivileges=yes
StandardOutput=syslog+console
StandardError=syslog+console

[Install]
WantedBy=multi-user.target

Then enable it:

systemctl daemon-reload
systemctl enable canoed
systemctl start canoed

About

Daemon for the Canoe Nano wallet, written in Nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%