Comments (4)
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.
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.
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.
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)
- [code sync] Update code to go-ethereum 1.12.2
- Flaking Load Test
- Not able to start subnet network with avalanchego 1.11.0 and subnet-evm 0.6.0 HOT 45
- Document Durango Changes
- [code sync] Update code to go-ethereum 1.13.2
- Genesis ChainConfig Timestamp Cleanup
- Invalid bloom error thus shutting down chain bootstrap HOT 4
- Subnet knows about pending tx, but has stopped producing blocks HOT 18
- ethclient.ChainConfig errors after precompile upgrade
- Deprecate historical proofs from API
- [code sync] Update code to go-ethereum 1.13.8
- [code sync] Update code to go-ethereum 1.13.14 HOT 1
- Add Native Burner Precompile to burn native tokens
- [antithesis] add subnet-evm test cases
- [design] prepare design for acp-77/subnet-staking HOT 1
- Test using path based trie
- eth_estimateGas calls with predicates
- Panic while syncing HOT 2
- Question on Warp precompiler contract. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subnet-evm.