hypersign-protocol / whitepaper

2 stars 0 forks source link

Research on Polygon Node #29

Open arnabghose997 opened 2 years ago

arnabghose997 commented 2 years ago
arnabghose997 commented 2 years ago

Running a Polygon Node on a local environment will require us to do the following:

Setting up Heimdall locally:

Bor Repo: https://github.com/maticnetwork/bor

Vishwas1 commented 2 years ago

Run the heimdall

cd

make build network=local

make install network=local
heimdalld init
heimdalld start

Run the rest-server

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"}}

Setup Bor

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