https://github.com/bnb-chain/node-deploy

https://github.com/bnb-chain/node-deploy

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.9%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: bnb-chain
  • Language: Shell
  • Default Branch: main
  • Size: 25.3 MB
Statistics
  • Stars: 57
  • Watchers: 11
  • Forks: 50
  • Open Issues: 5
  • Releases: 0
Created over 3 years ago · Last pushed 11 months ago
Metadata Files
Readme

README.md

Deployment tools of BSC

Installation

Before proceeding to the next steps, please ensure that the following packages and softwares are well installed in your local machine: - nodejs: v16.15.0 - npm: 6.14.6 - go: 1.24+ - foundry - python3 3.12.x - poetry - jq

Quick Start

  1. Clone this repository bash git clone https://github.com/bnb-chain/node-deploy.git

  2. For the first time, please execute the following command bash pip3 install -r requirements.txt

  3. build create-validator

```bash

This tool is used to register the validators into StakeHub.

cd create-validator go build ```

  1. Configure the cluster ``` You can configure the cluster by modifying the following files:

    • config.toml
    • genesis/genesis-template.json
    • genesis/scripts/init_holders.template
    • .env ```
  2. Setup all nodes. two different ways, choose as you like. ```bash bash -x ./bsc_cluster.sh reset # will reset the cluster and start

    The 'vidx' parameter is optional. If provided, its value must be in the range [0, ${BSCCLUSTERSIZE}). If omitted, it affects all clusters.

    bash -x ./bsccluster.sh stop [vidx] # Stops the cluster bash -x ./bsccluster.sh start [vidx] # only start the cluster bash -x ./bsc_cluster.sh restart [vidx] # start the cluster after stopping it ```

  3. Setup a full node. If you want to run a full node to test snap/full syncing, you can run:

Attention: it relies on the validator cluster, so you should set up validators by bsc_cluster.sh firstly.

```bash

reset a full sync node0

bash +x ./bsc_fullnode.sh reset 0 full

reset a snap sync node1

bash +x ./bsc_fullnode.sh reset 1 snap

restart the snap sync node1

bash +x ./bsc_fullnode.sh restart 1 snap

stop the snap sync node1

bash +x ./bsc_fullnode.sh stop 1 snap

clean the snap sync node1

bash +x ./bsc_fullnode.sh clean 1 snap

reset a full sync node as fast node

bash +x ./bsc_fullnode.sh reset 2 full "--tries-verify-mode none"

reset a snap sync node with prune ancient

bash +x ./bsc_fullnode.sh reset 3 snap "--pruneancient" ```

You can see the logs in .local/fullnode.

Generally, you need to wait for the validator to produce a certain amount of blocks before starting the full/snap syncing test, such as 1000 blocks.

Background transactions

```bash

normal tx

cd txbot go build ./air-drops

blob tx

cd txblob go build ./txblob ```

Owner

  • Name: bnb-chain
  • Login: bnb-chain
  • Kind: organization

For BNB Chain: BNB Smart Chain, BNB Beacon Chain

GitHub Events

Total
  • Create event: 30
  • Issues event: 2
  • Watch event: 9
  • Delete event: 29
  • Member event: 1
  • Issue comment event: 2
  • Push event: 95
  • Pull request review comment event: 16
  • Pull request review event: 47
  • Pull request event: 55
  • Fork event: 18
Last Year
  • Create event: 30
  • Issues event: 2
  • Watch event: 9
  • Delete event: 29
  • Member event: 1
  • Issue comment event: 2
  • Push event: 95
  • Pull request review comment event: 16
  • Pull request review event: 47
  • Pull request event: 55
  • Fork event: 18

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 116
  • Total Committers: 12
  • Avg Commits per committer: 9.667
  • Development Distribution Score (DDS): 0.509
Past Year
  • Commits: 48
  • Committers: 6
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.208
Top Committers
Name Email Commits
buddh0 g****r@g****m 57
j75689 j****9@g****m 21
NathanBSC N****l@n****o 14
GalaIO G****O 8
Matus Kysel m****l@b****m 6
Satyajit Das e****s@g****m 3
Mister-EA e****s@b****g 2
galaio 1****o 1
Roshan 4****7 1
Ng Wei Han w****7@g****m 1
nathan-l n****l@a****m 1
Mister-EA e****s@b****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 5
  • Total pull requests: 118
  • Average time to close issues: 3 months
  • Average time to close pull requests: 1 day
  • Total issue authors: 5
  • Total pull request authors: 9
  • Average comments per issue: 1.2
  • Average comments per pull request: 0.05
  • Merged pull requests: 108
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 52
  • Average time to close issues: N/A
  • Average time to close pull requests: about 4 hours
  • Issue authors: 2
  • Pull request authors: 4
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.02
  • Merged pull requests: 49
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • vinaykharayat (1)
  • NathanBSC (1)
  • ccwall3 (1)
  • Donk3ys (1)
  • nickwest-zkp (1)
  • erick785 (1)
Pull Request Authors
  • buddh0 (112)
  • galaio (14)
  • NathanBSC (14)
  • MatusKysel (6)
  • emailtovamos (6)
  • GalaIO (5)
  • Mister-EA (3)
  • allformless (2)
  • weiihann (1)
  • pythonberg1997 (1)
  • Pythonberg1997 (1)
Top Labels
Issue Labels
Pull Request Labels
documentation (1)

Dependencies

go.mod go
  • github.com/beorn7/perks v1.0.0
  • github.com/binance-chain/go-sdk v1.2.8
  • github.com/binance-chain/ledger-cosmos-go v0.9.9-binance.1
  • github.com/btcsuite/btcd v0.20.1-beta
  • github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
  • github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d
  • github.com/davecgh/go-spew v1.1.1
  • github.com/etcd-io/bbolt v1.3.3
  • github.com/ethereum/go-ethereum v1.10.26
  • github.com/ethereum/go-ethereum=>github.com/bnb-chain/bsc v1.1.18
  • github.com/go-kit/kit v0.8.0
  • github.com/go-logfmt/logfmt v0.4.0
  • github.com/gogo/protobuf v1.3.2
  • github.com/golang/protobuf v1.5.2
  • github.com/golang/snappy v0.0.4
  • github.com/google/go-cmp v0.5.8
  • github.com/gorilla/websocket v1.4.2
  • github.com/jmhodges/levigo v1.0.0
  • github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
  • github.com/libp2p/go-buffer-pool v0.0.2
  • github.com/matttproud/golang_protobuf_extensions v1.0.1
  • github.com/pkg/errors v0.9.1
  • github.com/prometheus/client_golang v1.0.0
  • github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4
  • github.com/prometheus/common v0.6.0
  • github.com/prometheus/procfs v0.0.2
  • github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563
  • github.com/rs/cors v1.7.0
  • github.com/stretchr/testify v1.8.0
  • github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
  • github.com/tendermint/btcd v0.0.0-20180816174608-e5840949ff4f
  • github.com/tendermint/go-amino v0.14.1
  • github.com/tendermint/go-amino=>github.com/bnb-chain/bnc-go-amino v0.14.1-binance.2
  • github.com/tendermint/iavl=>github.com/bnb-chain/bnc-tendermint-iavl v0.12.0-binance.5
  • github.com/tendermint/tendermint v0.32.3
  • github.com/tendermint/tendermint=>github.com/bnb-chain/bnc-tendermint v0.32.3-binance.7
  • github.com/zondax/hid v0.9.0
  • github.com/zondax/ledger-go v0.9.0
  • golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
  • golang.org/x/net v0.0.0-20220812174116-3211cb980234
  • golang.org/x/sys v0.1.0
  • golang.org/x/text v0.3.7
  • google.golang.org/genproto v0.0.0-20200108215221-bd8f9a0ef82f
  • google.golang.org/grpc v1.26.0
  • google.golang.org/protobuf v1.28.1
go.sum go
  • 207 dependencies