Skip to content

Commit 160b936

Browse files
authored
Merge pull request #871 from bnb-chain/develop
[R4R] prepare for release v0.9.2
2 parents 3c55b67 + 5215e06 commit 160b936

File tree

10 files changed

+415
-379
lines changed

10 files changed

+415
-379
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.9.2
4+
IMPROVEMENTS
5+
* [\#865](https://github.com/bnb-chain/node/pull/865) [CI] Build state recover tool in release job
6+
* [\#869](https://github.com/bnb-chain/node/pull/869) [Deps] Upgrade cosmos-sdk to v0.25.0 binance.28
7+
38
## 0.9.1
49
IMPROVEMENTS
510
* [\#839](https://github.com/bnb-chain/node/pull/839) [CLIENT] Crypto-level random for client

LICENSE

Lines changed: 373 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ else
9090
go build $(BUILD_FLAGS) -o build/bnbsentry ./cmd/bnbsentry
9191
go build $(BUILD_FLAGS) -o build/pressuremaker ./cmd/pressuremaker
9292
go build $(BUILD_FLAGS) -o build/lightd ./cmd/lightd
93+
go build $(BUILD_FLAGS) -o build/state_recover ./networks/tools/state_recover
9394
endif
9495

9596

@@ -101,13 +102,15 @@ ifeq ($(OS),Windows_NT)
101102
$(BUILD_CGOFLAGS) go build $(BUILD_CFLAGS) -o build/bnbsentry.exe ./cmd/bnbsentry
102103
go build $(BUILD_FLAGS) -o build/pressuremaker.exe ./cmd/pressuremaker
103104
$(BUILD_CGOFLAGS) go build $(BUILD_CFLAGS) -o build/lightd.exe ./cmd/lightd
105+
go build $(BUILD_FLAGS) -o build/state_recover.exe ./networks/tools/state_recover
104106
else
105107
go build $(BUILD_CLI_FLAGS) -o build/bnbcli ./cmd/bnbcli
106108
go build $(BUILD_TESTNET_FLAGS) -o build/tbnbcli ./cmd/bnbcli
107109
$(BUILD_CGOFLAGS) go build $(BUILD_CFLAGS) -o build/bnbchaind ./cmd/bnbchaind
108110
$(BUILD_CGOFLAGS) go build $(BUILD_CFLAGS) -o build/bnbsentry ./cmd/bnbsentry
109111
go build $(BUILD_FLAGS) -o build/pressuremaker ./cmd/pressuremaker
110112
$(BUILD_CGOFLAGS) go build $(BUILD_CFLAGS) -o build/lightd ./cmd/lightd
113+
go build $(BUILD_FLAGS) -o build/state_recover ./networks/tools/state_recover
111114
endif
112115

113116
build-windows:

README.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,20 @@ BNB Beacon Chain
33

44
BNB Beacon Chain is a blockchain with a flexible set of native assets and pluggable modules. It uses [tendermint](https://tendermint.com) for consensus and app logic is written in golang. It targets fast block times, a native dApp layer and multi-token support with no smart contract VM.
55

6-
This is a fork of [basecoin](https://github.com/cosmos/cosmos-sdk/tree/master/examples/basecoin) and is already functional as a multi-asset cryptocurrency blockchain and DEX; see below for instructions on how to use it.
6+
[![Reference](
7+
https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667
8+
)](https://docs.bnbchain.world/docs/learn/beaconIntro)
9+
[![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/z2VpC455eU)
10+
11+
Beacon Chain has the basic features of most blockchains:
12+
- Sending and receiving BNB and digital assets
13+
- Issuing new digital assets (we have a standard called BEP-2)
14+
- Mint/burn, freeze/unfreeze, lock/unlock of digital assets
15+
16+
It has DEX and trading-specific functionality:
17+
- Propose exchange listing for trading pairs
18+
- Creating maker/taker orders for traders
19+
- Listing assets from other chains using atomic swaps (BEP-3)
720

821
## Overview
922

@@ -14,8 +27,6 @@ This is a fork of [basecoin](https://github.com/cosmos/cosmos-sdk/tree/master/ex
1427
* UXTO/account does not matter as we just use the [cosmos](https://github.com/cosmos/cosmos-sdk/tree/master/x/bank) bank.
1528
* Features like the DEX will run directly on the node as apps written in golang.
1629

17-
<img src="https://d.pr/i/5kNDH1+" alt="tendermint architecture" width="500" />
18-
1930
[Read](https://tendermint.readthedocs.io/en/master/introduction.html) [more](https://blog.cosmos.network/tendermint-explained-bringing-bft-based-pos-to-the-public-blockchain-domain-f22e274a0fdb) about Tendermint and ABCI.
2031

2132
## Getting Started
@@ -37,11 +48,6 @@ $ cd $BNBCHAINPATH
3748
$ make build
3849
```
3950

40-
> If you want run bnbchaind with cleveldb as backend, please ensure leveldb is installed: https://github.com/google/leveldb#building,
41-
> and change `make install` to `make install_c`
42-
> For mac, `brew install leveldb` would help. For linux, you can build from source
43-
44-
4551
**Windows**
4652

4753
If you are working on windows, `GOPATH` and `PATH` should already be set when you install golang.
@@ -54,8 +60,6 @@ You may need add BNBCHAINPATH to the environment variables.
5460
> make build
5561
```
5662

57-
> If you encounter some network issues when downloading the dependencies, make sure you have configured shadowsocks correctly and switch to global mode. Run `set(win)/export(linux/mac) https_proxy=127.0.0.1:1080` if you still have https issues.
58-
5963
To test that installation worked, try to run the cli tool:
6064

6165
```bash
@@ -87,6 +91,10 @@ When you make a change you probably want to reset your chain, remember to kill t
8791
$ bnbchaind unsafe_reset_all
8892
```
8993

94+
### Join mainnet/testnet
95+
96+
Please refer to the document for joining [mainnet](https://docs.bnbchain.world/docs/beaconchain/develop/node/join-mainnet) or [testnnet](https://docs.bnbchain.world/docs/beaconchain/develop/node/join-testnet).
97+
9098
## Assets
9199

92100
### Issuing assets
@@ -202,14 +210,9 @@ $ curl -s http://localhost:8080/api/v1/depth?symbol=XYZ_BNB&limit=5 | json_pp
202210
{"asks":[["0.00000000","0.00000000"],["0.00000000","0.00000000"],["0.00000000","0.00000000"],["0.00000000","0.00000000"],["0.00000000","0.00000000"]],"bids":[["0.10000000","1.00000000"],["0.00000000","0.00000000"],["0.00000000","0.00000000"],["0.00000000","0.00000000"],["0.00000000","0.00000000"]]}
203211
```
204212

205-
### Future
206-
207-
#### Pegging
208-
209-
If we use a native asset (BNB) as an ICO quote currency this will be straightforward as a plugin, but other examples of how to peg ethereum tokens to assets on tendermint chains do exist e.g.
210-
211-
* [Peggy](https://github.com/cosmos/peggy) [read more](https://blog.cosmos.network/understanding-the-value-proposition-of-cosmos-ecaef63350d#f158)
212-
213-
#### Others
213+
## Contribution
214+
It is welcomed to contribute to this repo from everyone. If you'd like to contribute, please fork, fix, commit and submit a pull request to review and merge into the main code base. Please make sure your contributions adhere to our coding guidelines:
214215

215-
To add: [ICO], [Staking], [Freezing], [Burning]
216+
- Code must adhere to the official Go formatting guidelines (i.e. please use gofmt tool).
217+
- Code must be documented adhering to the official Go commentary guidelines.
218+
- Pull requests need to be based on and opened against the master branch.

go.mod

Lines changed: 2 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ require (
3030
github.com/bartekn/go-bip39 v0.0.0-20171116152956-a05967ea095d // indirect
3131
github.com/beorn7/perks v1.0.1 // indirect
3232
github.com/bgentry/speakeasy v0.1.0 // indirect
33-
github.com/binance-chain/tss v0.1.2 // indirect
34-
github.com/binance-chain/tss-lib v1.0.0 // indirect
3533
github.com/btcsuite/btcd v0.20.1-beta // indirect
3634
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d // indirect
37-
github.com/coreos/go-semver v0.3.0 // indirect
3835
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d // indirect
3936
github.com/cosmos/ledger-go v0.9.2 // indirect
4037
github.com/davecgh/go-spew v1.1.1 // indirect
@@ -46,76 +43,16 @@ require (
4643
github.com/gogo/protobuf v1.3.1 // indirect
4744
github.com/golang/protobuf v1.3.2 // indirect
4845
github.com/golang/snappy v0.0.1 // indirect
49-
github.com/google/uuid v1.1.1 // indirect
5046
github.com/gorilla/websocket v1.4.0 // indirect
51-
github.com/hashicorp/errwrap v1.0.0 // indirect
52-
github.com/hashicorp/go-multierror v1.0.0 // indirect
5347
github.com/hashicorp/hcl v1.0.0 // indirect
54-
github.com/huin/goupnp v1.0.0 // indirect
5548
github.com/inconshreveable/mousetrap v1.0.0 // indirect
56-
github.com/ipfs/go-cid v0.0.3 // indirect
57-
github.com/ipfs/go-datastore v0.0.5 // indirect
58-
github.com/ipfs/go-ipfs-util v0.0.1 // indirect
59-
github.com/ipfs/go-log v0.0.1 // indirect
60-
github.com/ipfs/go-todocounter v0.0.1 // indirect
61-
github.com/jackpal/gateway v1.0.5 // indirect
62-
github.com/jackpal/go-nat-pmp v1.0.1 // indirect
63-
github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2 // indirect
64-
github.com/jbenet/goprocess v0.1.3 // indirect
6549
github.com/jmhodges/levigo v1.0.0 // indirect
66-
github.com/koron/go-ssdp v0.0.0-20180514024734-4a0ed625a78b // indirect
6750
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 // indirect
68-
github.com/libp2p/go-addr-util v0.0.1 // indirect
6951
github.com/libp2p/go-buffer-pool v0.0.2 // indirect
70-
github.com/libp2p/go-conn-security-multistream v0.1.0 // indirect
71-
github.com/libp2p/go-eventbus v0.1.0 // indirect
72-
github.com/libp2p/go-flow-metrics v0.0.1 // indirect
73-
github.com/libp2p/go-libp2p v0.3.0 // indirect
74-
github.com/libp2p/go-libp2p-autonat v0.1.0 // indirect
75-
github.com/libp2p/go-libp2p-circuit v0.1.1 // indirect
76-
github.com/libp2p/go-libp2p-core v0.2.2 // indirect
77-
github.com/libp2p/go-libp2p-discovery v0.1.0 // indirect
78-
github.com/libp2p/go-libp2p-kad-dht v0.2.0 // indirect
79-
github.com/libp2p/go-libp2p-kbucket v0.2.0 // indirect
80-
github.com/libp2p/go-libp2p-loggables v0.1.0 // indirect
81-
github.com/libp2p/go-libp2p-mplex v0.2.1 // indirect
82-
github.com/libp2p/go-libp2p-nat v0.0.4 // indirect
83-
github.com/libp2p/go-libp2p-peerstore v0.1.3 // indirect
84-
github.com/libp2p/go-libp2p-record v0.1.1 // indirect
85-
github.com/libp2p/go-libp2p-routing v0.1.0 // indirect
86-
github.com/libp2p/go-libp2p-secio v0.2.0 // indirect
87-
github.com/libp2p/go-libp2p-swarm v0.2.0 // indirect
88-
github.com/libp2p/go-libp2p-transport-upgrader v0.1.1 // indirect
89-
github.com/libp2p/go-libp2p-yamux v0.2.1 // indirect
90-
github.com/libp2p/go-maddr-filter v0.0.5 // indirect
91-
github.com/libp2p/go-mplex v0.1.0 // indirect
92-
github.com/libp2p/go-msgio v0.0.4 // indirect
93-
github.com/libp2p/go-nat v0.0.3 // indirect
94-
github.com/libp2p/go-openssl v0.0.2 // indirect
95-
github.com/libp2p/go-reuseport v0.0.1 // indirect
96-
github.com/libp2p/go-reuseport-transport v0.0.2 // indirect
97-
github.com/libp2p/go-stream-muxer-multistream v0.2.0 // indirect
98-
github.com/libp2p/go-tcp-transport v0.1.0 // indirect
99-
github.com/libp2p/go-ws-transport v0.1.0 // indirect
100-
github.com/libp2p/go-yamux v1.2.3 // indirect
10152
github.com/magiconair/properties v1.8.1 // indirect
102-
github.com/mattn/go-colorable v0.1.4 // indirect
10353
github.com/mattn/go-isatty v0.0.10 // indirect
10454
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
105-
github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 // indirect
106-
github.com/minio/sha256-simd v0.1.0 // indirect
10755
github.com/mitchellh/mapstructure v1.1.2 // indirect
108-
github.com/mr-tron/base58 v1.1.2 // indirect
109-
github.com/multiformats/go-base32 v0.0.3 // indirect
110-
github.com/multiformats/go-multiaddr v0.0.4 // indirect
111-
github.com/multiformats/go-multiaddr-dns v0.0.3 // indirect
112-
github.com/multiformats/go-multiaddr-fmt v0.0.1 // indirect
113-
github.com/multiformats/go-multiaddr-net v0.0.1 // indirect
114-
github.com/multiformats/go-multibase v0.0.1 // indirect
115-
github.com/multiformats/go-multihash v0.0.7 // indirect
116-
github.com/multiformats/go-multistream v0.1.0 // indirect
117-
github.com/opentracing/opentracing-go v1.1.0 // indirect
118-
github.com/otiai10/primes v0.0.0-20180210170552-f6d2a1ba97c4 // indirect
11956
github.com/pelletier/go-toml v1.4.0 // indirect
12057
github.com/pierrec/lz4 v2.0.5+incompatible // indirect
12158
github.com/pmezard/go-difflib v1.0.0 // indirect
@@ -124,28 +61,18 @@ require (
12461
github.com/prometheus/procfs v0.0.3 // indirect
12562
github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 // indirect
12663
github.com/rs/cors v1.6.0 // indirect
127-
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect
128-
github.com/spaolacci/murmur3 v1.1.0 // indirect
12964
github.com/spf13/afero v1.2.2 // indirect
13065
github.com/spf13/cast v1.3.0 // indirect
13166
github.com/spf13/jwalterweatherman v1.1.0 // indirect
13267
github.com/spf13/pflag v1.0.3 // indirect
13368
github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965 // indirect
13469
github.com/tendermint/btcd v0.1.1 // indirect
135-
github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc // indirect
136-
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect
137-
github.com/whyrusleeping/go-logging v0.0.1 // indirect
138-
github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f // indirect
139-
github.com/whyrusleeping/mafmt v1.2.8 // indirect
140-
github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 // indirect
14170
github.com/zondax/hid v0.9.0 // indirect
14271
github.com/zondax/ledger-cosmos-go v0.9.9 // indirect
143-
go.opencensus.io v0.22.0 // indirect
14472
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 // indirect
14573
golang.org/x/net v0.0.0-20191021144547-ec77196f6094 // indirect
146-
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 // indirect
74+
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
14775
golang.org/x/text v0.3.2 // indirect
148-
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 // indirect
14976
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb // indirect
15077
google.golang.org/grpc v1.23.0 // indirect
15178
gopkg.in/linkedin/goavro.v1 v1.0.5 // indirect
@@ -154,7 +81,7 @@ require (
15481
)
15582

15683
replace (
157-
github.com/cosmos/cosmos-sdk => github.com/bnb-chain/bnc-cosmos-sdk v0.25.0-binance.27
84+
github.com/cosmos/cosmos-sdk => github.com/bnb-chain/bnc-cosmos-sdk v0.25.0-binance.28
15885
github.com/tendermint/go-amino => github.com/bnb-chain/bnc-go-amino v0.14.1-binance.2
15986
github.com/tendermint/iavl => github.com/bnb-chain/bnc-tendermint-iavl v0.12.0-binance.4
16087
github.com/tendermint/tendermint => github.com/bnb-chain/bnc-tendermint v0.32.3-binance.7

0 commit comments

Comments
 (0)