You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Official Javascript implementation of AI Network Blockchain.
5
5
6
+
## JSON-RPC API
7
+
8
+
For accessing AIN Blockchain nodes, see [JSON_RPC_API.md](./JSON_RPC_API.md).
9
+
6
10
## Install Environment (Last update at 6th of Dec 2021)
7
11
### OS
8
12
9
-
- macOS 10.15 (macos-latest)
10
-
- Ubuntu 20.04 (ubuntu-latest)
13
+
- macOS 13.5 (macos-latest)
14
+
- Ubuntu 22.04 (ubuntu-latest)
11
15
12
-
### Node version
16
+
### NodeJs version
13
17
14
-
- v16.x
15
-
- v14.x
18
+
- v18.x
16
19
17
20
## Tracker
18
21
19
-
Tracker server is required by new peers who wish to join the AIN network. Each peer is sent the ipaddress of 2 other nodes in the network. These nodes then gossip information through the network of all transactions and blocks.
22
+
Tracker server is required by new peers who wish to join the AIN network. Each peer is sent the ip address of 2 other nodes in the network. These nodes then gossip information through the network of all transactions and blocks.
20
23
21
24
NOTE: Tracker Server must be started first before starting any blockchain node instances.
22
25
23
-
### Running without Docker
26
+
### Running Tracker without Docker
24
27
25
28
#### Local
26
29
@@ -44,26 +47,22 @@ You can override default port numbering system by setting `PORT` and `P2P_PORT`
44
47
```
45
48
gcloud init
46
49
# For genesis deploy
47
-
bash deploy_blockchain_genesis_gcp.sh {dev|staging|spring|summer} <# of Shards> [--setup]
50
+
bash deploy_blockchain_genesis_gcp.sh [dev|staging|sandbox|exp|spring|summer|mainnet] <# of Shards> <Parent Node Index Begin> <Parent Node Index End> [--setup] [--keystore|--mnemonic|--private-key] [--keep-code|--no-keep-code] [--keep-data|--no-keep-data] [--full-sync|--fast-sync] [--chown-data|--no-chown-data] [--kill-only|--skip-kill]
@@ -80,21 +79,21 @@ docker run --network="host" -d ainblockchain/tracker-server:latest
80
79
```
81
80
-->
82
81
83
-
### Client API for development and debugging
82
+
### Tracker Client API for development and testing purposes
84
83
85
-
#### Tracker health check
84
+
#### Tracker protocol version check & health check
86
85
87
-
GET http://<ip_address>:5000/
86
+
GET http://<ip_address>:8080/
88
87
89
-
#### Node status check
88
+
#### Network status check
90
89
91
-
GET http://<ip_address>:5000/peer_nodes
90
+
GET http://<ip_address>:8080/network_status
92
91
93
-
## Node
92
+
## Blockchain Node
94
93
95
94
Operates a single peer node instance of the AIN blockchain. A single blockchain node instance processes incoming transaction requests and maintains a local copy of the entire blockchain. The blockchain node first queries the tracker-server for ip addresses of other peers, and then syncs its local blockchain to the network consensus blockchain. If a node is included in the whitelist and has staked appropriate amount of AIN, it will then take part in the consensus protocol.
0 commit comments