Conceal Wiki

Smart-nodes

This is an old revision of the document!


Conceal Node Guardian

1. About

ConcealNodeGuard is a guardian process that monitors over the conceald daemon. It can catch daemon errors and also monitors if the block count is increasing. In case an error is detected or the block count is stale it restarts the daemon and notifies the devs on the Discord over a web hook, or sends a mail to the recipient, or both.

It can also connect to a pool so the node is then listed among available nodes either for infrastructure monitoring or for remote node with fee listing.

2. Installation

To install and run it you have two options. Install and run it via the node.js virtual machine or you can download the pre-compiled executable that already includes node.js and run that. In that case you have 0 dependencies.

If you go with the first options the continue reading, otherwise go to installation page.

First need to install dependencies. There are two:

You can see how to install it here.

When you have it installed you can run the guardian by simply doing:

  1. npm install
  2. node index.js

Before doing that however its wise to check the config.json and set the correct settings. For interactive config setup please refer to installation page.

You can see a sample of config.json file and detailed instructions here.

3. API

The Guardian can have an api that listens for incoming requests and returns some info about the node. The api only has one handler (all other request are considered invalid and return 403):

  • getInfo

Click here to see a result example.