bnb-chain / bsc

A BNB Smart Chain client based on the go-ethereum fork
GNU Lesser General Public License v3.0
2.65k stars 1.53k forks source link

Windows node setup / configuration documentation #371

Closed brian-man closed 1 year ago

brian-man commented 2 years ago

Some recent commits by guagualvcha suggest that at least a handful of people are running BSC nodes on Windows, but I didn't have much luck finding setup/configuration documentation.

Is there such documentation? If not, where/how should I contribute such documentation if I figure it out myself and want to share the learnings and tips?

billyadelphia commented 2 years ago

+1 .. I need this also, currently struggle try to build it from source for Windows

newb23 commented 2 years ago

Here is how I was able to get version 1.1.2 up and running!

--- In Admin Powershell --- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

choco install git choco install golang choco install mingw

restart Powershell to re-load PATH

git clone https://github.com/binance-chain/bsc cd bsc go run build/ci.go install ./cmd/geth copy geth.exe from ./build/bin/ to your run area

---- in your run area ----

download and unzip https://github.com/binance-chain/bsc/releases/download/v1.1.2/mainnet.zip geth.exe --datadir node init genesis.json edit your config.toml as you like (I do 500 - 2000 maxPeers) geth.exe --config ./config.toml --datadir ./node --cache 18000 --rpc.allow-unprotected-txs --txlookuplimit 0 --ws console

Handy docs for console commands once you get running: https://www.quicknode.com/docs/binance-smart-chain

RumeelHussainbnb commented 2 years ago

We are on it and soon we will publish it. Please proceed to join our Discord channel for more discussion at https://discord.com/invite/binancesmartchain

bytrislasis commented 1 year ago

We are on it and soon we will publish it. Please proceed to join our Discord channel for more discussion at https://discord.com/invite/binancesmartchain

it shouldn't be this hard :)

bnb-tw commented 1 year ago

Windows is not really a supported platform to run the BSC node.