# bsc **Repository Path**: misoag/bsc ## Basic Information - **Project Name**: bsc - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-12 - **Last Updated**: 2021-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 配置要求 - 2T以上固态硬盘 - 8核32GB内存 - 上传、下载速度至少5MB/s ## 安装目录 /home/bsc/bsc/build/bin ## 编译源码 确保已经安装Go 1.13 1. 克隆库:`git clone https://github.com/binance-chain/bsc` 2. 进入bsc文件夹:`cd bsc` 3. 编译文件:`make geth` ## 下载配置文件并写入创世块配置 1. genesis.json和config.toml:` wget https://github.com/binance-chain/bsc/releases/download/v1.1.0-beta/mainnet.zip` 2. 写入创世块信息:`geth --datadir node init genesis.json` ## 下载chaindata快照加速同步 1. 下载地址:[binance-chain/bsc-snapshots (github.com)](https://github.com/binance-chain/bsc-snapshots) 2. `wget -O data.zip "https://s3.ap-northeast-1.amazonaws.com/dex-bin.bnbstatic.com/geth-20210810.zip?AWSAccessKeyId=AKIAYINE6SBQPUZDDRRO&Expires=1631239918&Signature=ZEYcYdMBFiFsOCU0JfkaBcBD89g%3D" ` 3. 解压:`nohup unzip data.zip -d ./node &` ## 启动节点并同步 sudo nohup ./geth --config ./config.toml --datadir ./node --http --http.api=eth,net,web3 --ws --ws.api=eth,net,web3 --ws.origins=*