-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from acrylplatform/FIX-1
FIX-1: Various fixes
- Loading branch information
Showing
4 changed files
with
90 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name := "node-extension" | ||
version := "0.0.1" | ||
|
||
scalaVersion := "2.12.9" | ||
scalaVersion := "2.12.8" | ||
val nodeVersion = "v1.0.4" | ||
|
||
lazy val node = ProjectRef(uri(s"git://github.com/acrylplatform/Acryl.git#$nodeVersion"), "node") | ||
|
||
lazy val myProject = (project in file(".")) | ||
lazy val nodeExtension = (project in file(".")) | ||
.dependsOn(node % "compile;runtime->provided") | ||
|
||
libraryDependencies += "org.scalaj" %% "scalaj-http" % "2.4.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters