github.com/trezor/blockbook@v0.4.1-0.20240328132726-e9a08582ee2c/build/templates/backend/scripts/polygon_bor.sh (about)

     1  #!/bin/sh
     2  
     3  {{define "main" -}}
     4  
     5  set -e
     6  
     7  INSTALL_DIR={{.Env.BackendInstallPath}}/{{.Coin.Alias}}
     8  DATA_DIR={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend
     9  
    10  BOR_BIN=$INSTALL_DIR/bor
    11  
    12  # --bor.heimdall = backend-polygon-heimdall ports.backend_http
    13  $BOR_BIN server \
    14    --chain $INSTALL_DIR/genesis.json \
    15    --syncmode full \
    16    --datadir $DATA_DIR \
    17    --bor.heimdall http://127.0.0.1:8171 \
    18    --bootnodes enode://76316d1cb93c8ed407d3332d595233401250d48f8fbb1d9c65bd18c0495eca1b43ec38ee0ea1c257c0abb7d1f25d649d359cdfe5a805842159cfe36c5f66b7e8@52.78.36.216:30303,enode://b8f1cc9c5d4403703fbf377116469667d2b1823c0daf16b7250aa576bacf399e42c3930ccfcb02c5df6879565a2b8931335565f0e8d3f8e72385ecf4a4bf160a@3.36.224.80:30303,enode://8729e0c825f3d9cad382555f3e46dcff21af323e89025a0e6312df541f4a9e73abfa562d64906f5e59c51fe6f0501b3e61b07979606c56329c020ed739910759@54.194.245.5:30303,enode://681ebac58d8dd2d8a6eef15329dfbad0ab960561524cf2dfde40ad646736fe5c244020f20b87e7c1520820bc625cfb487dd71d63a3a3bf0baea2dbb8ec7c79f1@34.240.245.39:30303 \
    19    --port {{.Ports.BackendP2P}} \
    20    --http \
    21    --http.addr 127.0.0.1 \
    22    --http.port {{.Ports.BackendHttp}} \
    23    --http.api eth,net,web3,debug,txpool,bor \
    24    --http.vhosts '*' \
    25    --http.corsdomain '*' \
    26    --ws \
    27    --ws.addr 127.0.0.1 \
    28    --ws.port {{.Ports.BackendRPC}} \
    29    --ws.api eth,net,web3,debug,txpool,bor \
    30    --ws.origins '*' \
    31    --txlookuplimit 0 \
    32    --cache 4096 \
    33    --nat none 
    34  
    35  {{end}}