Git Product home page Git Product logo

Comments (4)

ceyonur avatar ceyonur commented on June 26, 2024

this config seems to be a mixture of avalanchego configs + subnet-evm configs. Also it should be under configs/chains/yourChainID/config.json not yourChainName/config.json. Could you recheck your config files and directories? I just tested on my local and it seems working/disabling as expected.

See https://docs.avax.network/nodes/configure/chain-configs/chain-config-flags

from subnet-evm.

PinkFromTheFuture avatar PinkFromTheFuture commented on June 26, 2024

Thanks for the reply @ceyonur !

I would like to clarify something: is there more than 1 config.json file?
So the chain config should be at $dataDir/yourChainName/config.json?
And the file configs/chains/yourChainID/config.json is for the avalanchego config?

This one, is being used when launching the node, with
avalanchego --config-file ".avalanchego/configs/chains/T RIZE Test Chain/config.json"
Maybe I am not launching the node correctly?

I can confirm that it is being read, because I am setting the RPC port to 9123 and it is taking effect.

So it should not matter that it's using yourChainName instead of yourChainID, as long as it is being referenced when launching the node, no?
I'm not sure why ours is named after our chain and not the chain ID, as we just followed the documentation on https://docs.avax.network/build/subnet/deploy/fuji-testnet-subnet

The URL you gave me gives a 404 - https://docs.avax.network/nodes/configure/chain-configs/chain-config-flags

from subnet-evm.

ceyonur avatar ceyonur commented on June 26, 2024

Yes, there is a config for avalanchego, and there are different config files for each chains. So in your case there should be 2 different configs.
You're referencing the config file directory with --config-file for avalanchego. It does not do anything for subnet-evm and your chain. Chain-specific configs are under their chain IDs.
This part belong to avalanchego config:

   "http-host": "",
    "http-port": 9123,
    "network-id": "fuji",
    "public-ip": "ommited",
    "staking-port": 9122,
    "state-sync-enabled": true,
    "track-subnets": "ommited"

but eth apis part should be in a separate config.

You can create a new config.json under configs/chains/yourChainID/config.json (not yourChainName) with eth Apis configuration part and it should be automatically captured.

See this page and other related pages https://docs.avax.network/nodes/configure/avalanchego-config-flags#chain-configs

from subnet-evm.

PinkFromTheFuture avatar PinkFromTheFuture commented on June 26, 2024

I am happy to follow up to say that all is good and working wonderfully.

There is no bug, it was just me not doing the right thing!

I would like to note that I believe the source of the issue is that both configs have the same name, and they are also documented in the same page of the documentation. I would split the documentation into two different pages, to avoid confusion.

@ceyonur , once again, thank you very much for helping and for your time.
Cheers!

from subnet-evm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.