Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
deadblackclover committed Feb 12, 2020
1 parent d543fc0 commit 2391cc0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,41 @@
# acryl-node-extension
Extension for Acryl Node

## Extension options
- when the node starts, it sends message why the node will not generate blocks:
- if mining disabled in config
- a generating balance is less than 100 Acryl
- the miner account has a smart contract
- notifies if the node mined block and its reward
- notifies about incoming Acryl
- notifies about changes of leased volume.

## How to install:
1. Download `node-extension-0.0.1.jar` to `/usr/share/acryl/lib/`:
```
wget https://github.com/acrylplatform/acryl-node-extension/releases/download/v0.0.1/node-extension-0.0.1.jar -P /usr/share/acryl/lib/
```
2. Download official `scalaj-http_2.12-2.4.2.jar` from Maven Central to `/usr/share/acryl/lib/`:
```
wget https://repo1.maven.org/maven2/org/scalaj/scalaj-http_2.12/2.4.2/scalaj-http_2.12-2.4.2.jar -P /usr/share/acryl/lib/
```
3. Add to `/etc/acryl/acryl.conf` (or `local.conf`):
```
acryl.extensions = [
"com.acrylplatform.extensions.Node"
]
node-extension.webhook {
# url = "https://example.com/webhook/1234567890" # SPECIFY YOUR ENDPOINT
# body = """Mainnet: %s"""
}
```
4. Restart the node
If node starts successfully, you will receive message about this.
## Notifications
By default the extension writes notifications to the node log file. In addition, you can specify any endpoint of notifications.
For example, you can use Telegram bot https://t.me/bullhorn_bot from https://integram.org/ team (add this bot and read its welcome message).
You can read the full list of properties in the [application.conf](src/main/resources/application.conf).

0 comments on commit 2391cc0

Please sign in to comment.