forked from Finschia/ostracon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.md
101 lines (77 loc) · 2.12 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Ostracon
![example workflow](https://github.com/Finschia/ostracon/actions/workflows/build.yml/badge.svg)
![example workflow](https://github.com/Finschia/ostracon/actions/workflows/coverage.yml/badge.svg)
[Ostracon](docs/en/01-overview.md "Ostracon: A Fast, Secure Consensus Layer for The Blockchain of New Token Economy")
is forked from Tendermint Core [v0.34.19](https://github.com/tendermint/tendermint/tree/v0.34.19) at 2021-03-15.
**Node**: Requires [Go 1.18+](https://golang.org/dl/)
**Warnings**: Initial development is in progress, but there has not yet been a stable.
[](docs/en/01-overview.md)
# Quick Start
## git clone
```shell
git clone https://github.com/Finschia/ostracon.git
# or
git clone [email protected]:Finschia/ostracon.git
```
### git clone with recursive if you want to use libsodium
```shell
git clone --recursive https://github.com/Finschia/ostracon.git
# or
git clone --recursive [email protected]:Finschia/ostracon.git
```
### git submodule if you forget to clone with submodule
```shell
git submodule update --init --recursive
```
## Local Standalone
**Build**
```sh
make build # go help build
make install # go help install
```
**Run**
```sh
ostracon init
ostracon node --proxy_app=kvstore # Run a node
```
Before running it, don't forget to cleanup the old files:
```sh
# Clear the build folder
rm -rf ~/.ostracon
```
**Visit with your browser**
* Node: http://localhost:26657/
## Localnet(4 nodes) with Docker
**Build Docker Image**
(optionally) Build the linux binary for localnode in ./build
```sh
make build-localnode
```
(optionally) Build ostracon/localnode image
```sh
make build-localnode-docker
```
**Run localnet**
To start 4 nodes
```sh
make localnet-start
```
Before running it, don't forget to cleanup the old files
```sh
rm -rf ./build/node*
```
**Visit with your browser**
* Node: http://localhost:26657/
## Linux Docker
**Build Docker Image**
Build the linux binary
```sh
make build-linux-docker
```
**Run a linux docker node**
To start a linux node
```sh
make standalone-linux-docker
```
**Visit with your browser**
* Node: http://localhost:26657/