Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: failed sending StakeManager contract deploy transaction: dialing to the given TCP address timed out #1732

Closed
squiddyswap opened this issue Jul 18, 2023 · 8 comments
Assignees

Comments

@squiddyswap
Copy link

Error: failed sending StakeManager contract deploy transaction
When trying to deploy the StakeManager with this command:

sudo ./zroarchain polybft stake-manager-deploy
--jsonrpc https://rpc-mumbai.matic.today/
--private-key private-key
--stake-token 0x0000000000000000000000000000000000001010
--genesis /etc/zroarchain/genesis.json

Getting this error:
Error: failed sending StakeManager contract deploy transaction: dialing to the given TCP address timed out

Describe your issue in as much detail as possible here.

Debian 11 OS

Polygon Edge v1.0.1

Steps to reproduce

Run this command:

sudo ./zroarchain polybft stake-manager-deploy
--jsonrpc https://rpc-mumbai.matic.today/
--private-key private-key
--stake-token 0x0000000000000000000000000000000000001010
--genesis /etc/zroarchain/genesis.json

Expected behavior

should run and deploy stake manager
but it gave a timeout error

@squiddyswap
Copy link
Author

sudo ./zroarchain polybft stake-manager-deploy
--jsonrpc https://rpc-mumbai.matic.today/
--private-key private-key
--stake-token erc20 token
--genesis /etc/zroarchain/genesis.json

Even if you put in an ERC20 token to stake it come back with the same response. I researched this error and as it occurs with Polygon it has a gas estimation problem and there is a workaround for this issue. Looks like some attempt has been used with this very workaround, but that workaround may not be implemented correctly.

@Stefan-Ethernal
Copy link
Collaborator

Maybe you should try out specifying this JSON RPC url:
--jsonrpc https://polygon-mumbai.g.alchemy.com/v2/JPxV0ktDGv24NhRucZs0I8s3gvDaclZn.

Also for stake-token, WMATIC should be used. This is its address on the Mumbai https://mumbai.polygonscan.com/address/0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889.

@Stefan-Ethernal Stefan-Ethernal self-assigned this Jul 20, 2023
@squiddyswap
Copy link
Author

Thank you so much for your response. I tried your suggestions and it still came back with the same response TCP timeout when trying to deploy the stake manager.

@squiddyswap
Copy link
Author

looks like this is similar to our problem differences: we are connecting to Polygon and this issue is Ethereum.

Error: Max fee less than base fee sometimes when deploying to alternative L1/L2 for rootchain #1738

@Stefan-Ethernal
Copy link
Collaborator

Stefan-Ethernal commented Jul 21, 2023

Ok if you suspect that gas estimation is not correct and that you are facing the same issue as in #1738, then you can either wait for the next release, or try building binary on your own, but make sure that you choose the latest commit from develop (namely the one which includes fix #1718).

@squiddyswap
Copy link
Author

thank you for your response, I will give it my best try. Not the expert(SME) on the code, but will look at it and see if I can come up with a workaround until the next release. Thanks again.

@Stefan-Ethernal
Copy link
Collaborator

@squiddyswap in fact, you can try out with the newest release (https://github.com/0xPolygon/polygon-edge/releases/tag/v1.1.0) and see if it is any better, because mentioned #1718 is part of it.

@mrandall101
Copy link

Will do. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants