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

Update consensus node CHAIN_ID to 298 #156

Closed
Kalina-Todorova opened this issue Aug 29, 2022 · 5 comments
Closed

Update consensus node CHAIN_ID to 298 #156

Kalina-Todorova opened this issue Aug 29, 2022 · 5 comments
Assignees

Comments

@Kalina-Todorova
Copy link
Contributor

Description

As noted in the https://github.com/hashgraph/hedera-json-rpc-relay/ README:
The network chain id. Local and previewnet envs should use 0x12a (298). Previewnet, Testnet and Mainnet should use 0x129 (297), 0x128 (296) and 0x127 (295) respectively
Let's update the CHAIN_ID to be the correct one for local environment.

Steps to reproduce

When running the local node.

Additional context

No response

Hedera network

other

Version

v1.2.0

Operating system

No response

@georgi-l95 georgi-l95 self-assigned this Aug 29, 2022
@mshakeg
Copy link

mshakeg commented Sep 1, 2022

@Kalina-Todorova is this issue related to this issue I came across in the example projects.

@georgi-l95
Copy link
Contributor

Probably yes, local node was configured to work with testnet - 0x128 (296) , while relay is configured to work with 0x12a (298) .This should be fixed now.

@mshakeg
Copy link

mshakeg commented Sep 1, 2022

@georgi-l95 thanks for the reply. I see, would you happen to know when's the next @hashgraph/hedera-local release and if there's a temp fix/workaround for devs until then?

@georgi-l95
Copy link
Contributor

Not sure about next release, but you can start the relay locally and after that start the hedera-local (this way the relay container won't start). Just make sure their chain id are the same. Either testnet or local. Checkout how to start it in the relay repo.

@mshakeg
Copy link

mshakeg commented Sep 1, 2022

@georgi-l95 I started the relay up and then the hedera-local node, however there seems to be a health check on the relay container which basically shuts down the entire docker service if it's not healthy.

Starting the docker containers...
Stopping the network...
Stopping the docker containers...
Cleaning the volumes and temp files...
Waiting for the containers at 127.0.0.1:5600, retrying in 20 seconds...
Error: connect ECONNREFUSED 127.0.0.1:5600
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16) {
  errno: -61,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 5600
}

Edit:
Managed to get it working using the testnet CHAIN_ID in the relay .env

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