Open arnabghose997 opened 2 years ago
Running a Polygon Node on a local environment will require us to do the following:
Setting up Heimdall locally:
make install
. If it doesn't work, navigate to cmd/heimdall
folder and run go build
. This will generate a binary in the same directory. Save the location of binary in bash_profile
heimdalld init
which would generate a initialization JSON like so: { "chain_id": "heimdall-nzf7nw", "node_id": "705c8054c1b61bb3ffaaa2863d7b22f9aeb0b2da" }
. ~/.heimdall/config
:
Bor Repo: https://github.com/maticnetwork/bor
cd
make build network=local
make install network=local
heimdalld init
heimdalld start
heimdalld rest-server
http://localhost:1317/overview
O/p
{"height":"0","result":{"ack_count":0,"checkpoint_buffer":null,"validator_count":1,"validator_set":{"validators":[{"ID":1,"startEpoch":0,"endEpoch":0,"nonce":1,"power":1,"pubKey":"0x042d0c7a1e51a788213af3acb5c1ad026f1606918c3f58825b49c70e1831cadf6becb1359fab8e47503f834456edfb222f7e75b63b080682cb580215cbe0a0123d","signer":"0x97b6ad68348395ae27f4a348dbc6bad1b44c814d","last_updated":"","jailed":false,"accum":0}],"proposer":{"ID":1,"startEpoch":0,"endEpoch":0,"nonce":1,"power":1,"pubKey":"0x042d0c7a1e51a788213af3acb5c1ad026f1606918c3f58825b49c70e1831cadf6becb1359fab8e47503f834456edfb222f7e75b63b080682cb580215cbe0a0123d","signer":"0x97b6ad68348395ae27f4a348dbc6bad1b44c814d","last_updated":"","jailed":false,"accum":0}},"last_noack_time":"1970-01-01T05:30:00+05:30"}}
git clone https://github.com/
cd
make bor-all
cp ~/home/go/bin/bor /usr/local/bin
bor --dev --datadir /tmp/bor --http --http.addr 127.0.0.1 --http.port 8545 --http.corsdomain '*' --http.vhosts "*" --http.api 'eth,net,web3,txpool'
We are not able to connecct heimdall with bor. nothing happens when we send tx on bor via metamask