Skip to content

Commit 5c8e850

Browse files
author
Igor Lavrenov
committed
initial
0 parents  commit 5c8e850

File tree

5 files changed

+684
-0
lines changed

5 files changed

+684
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
default.config.ini
2+
arrayio.conf

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Rafał Warzycha
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Array.IO Test-net "Newton" (Alpha)
2+
3+
This manual describes how to setup Array.IO node.
4+
5+
# Requirements
6+
* Debian / Ubuntu (Debian 9 strongly recommended)
7+
8+
# Request witness account creation
9+
* Coming soon!
10+
11+
# Install Array.IO node
12+
```
13+
wget https://github.com/arrayio/array-io-newton/releases/download/initial/array-io-core_0.1.183.deb
14+
sudo dpkg -i array-io-core_0.1.183.deb
15+
sudo ldconfig
16+
```
17+
18+
# Configure Array.IO node
19+
```
20+
git clone https://github.com/array-io/array-io-newton
21+
cd array-io-newton
22+
```
23+
* edit "config.ini"
24+
* replace witness-id = "1.6.6" with your witness id
25+
* replace private-key = ["BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"] with your tuple of [PublicKey, WIF private key]
26+
27+
# Start Array.IO node
28+
```
29+
cd array-io-newton
30+
LC_ALL=C witness_node --data-dir=.
31+
```
32+
33+
34+
MIT @ `LICENSE`

config.ini

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# ID of witness controlled by this node (e.g. "1.6.5", quotes are required, may specify multiple times)
2+
witness-id = "1.6.1"
3+
4+
# Tuple of [PublicKey, WIF private key] (may specify multiple times)
5+
private-key = ["BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
6+
7+
# JSON array of P2P nodes to connect to on startup
8+
seed-nodes = ["newton.array.io:9090"]
9+
10+
# Enable block production, even if the chain is stale.
11+
enable-stale-production = true
12+
13+
# Endpoint for P2P node to listen on
14+
p2p-endpoint = 0.0.0.0:9090
15+
16+
# Endpoint for websocket RPC to listen on
17+
rpc-endpoint = 0.0.0.0:8090
18+
19+
# File to read Genesis State from
20+
genesis-json = main_genesis.json
21+
22+
# Endpoint for P2P node to listen on
23+
# p2p-endpoint =
24+
25+
# P2P nodes to connect to on startup (may specify multiple times)
26+
# seed-node =
27+
28+
# JSON array of P2P nodes to connect to on startup
29+
# seed-nodes =
30+
31+
# Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.
32+
# checkpoint =
33+
34+
# Endpoint for websocket RPC to listen on
35+
# rpc-endpoint =
36+
37+
# Endpoint for TLS websocket RPC to listen on
38+
# rpc-tls-endpoint =
39+
40+
# The TLS certificate file for this server
41+
# server-pem =
42+
43+
# Password for this certificate
44+
# server-pem-password =
45+
46+
# File to read Genesis State from
47+
# genesis-json =
48+
49+
# Block signing key to use for init witnesses, overrides genesis file
50+
# dbg-init-key =
51+
52+
# JSON file specifying API permissions
53+
# api-access =
54+
55+
# Enable block production, even if the chain is stale.
56+
# enable-stale-production = true
57+
58+
# Percent of witnesses (0-99) that must be participating in order to produce blocks
59+
# required-participation = false
60+
61+
# ID of witness controlled by this node (e.g. "1.6.5", quotes are required, may specify multiple times)
62+
# witness-id =
63+
64+
# Tuple of [PublicKey, WIF private key] (may specify multiple times)
65+
# private-key = ["BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
66+
67+
# Account ID to track history for (may specify multiple times)
68+
# track-account =
69+
70+
# Track market history by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers
71+
bucket-size = [15,60,300,3600,86400]
72+
73+
# How far back in time to track history for each bucket size, measured in the number of buckets (default: 1000)
74+
history-per-size = 1000
75+
76+
# declare an appender named "stderr" that writes messages to the console
77+
[log.console_appender.stderr]
78+
stream=std_error
79+
80+
# declare an appender named "p2p" that writes messages to p2p.log
81+
[log.file_appender.p2p]
82+
filename=logs/p2p/p2p.log
83+
# filename can be absolute or relative to this config file
84+
85+
# route any messages logged to the default logger to the "stderr" logger we
86+
# declared above, if they are info level are higher
87+
[logger.default]
88+
level=info
89+
appenders=stderr
90+
91+
# route messages sent to the "p2p" logger to the p2p appender declared above
92+
[logger.p2p]
93+
level=debug
94+
appenders=p2p

0 commit comments

Comments
 (0)