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

Ca't connect to testnet #25

Open
bacao1994 opened this issue May 19, 2021 · 2 comments
Open

Ca't connect to testnet #25

bacao1994 opened this issue May 19, 2021 · 2 comments

Comments

@bacao1994
Copy link

bacao1994 commented May 19, 2021

I try to set up a CHIA local testnet blockchain. (testnet7)
Could you give me some idea to set up this lib interact with testnet.
Many thanks.
My issue below:

Error: ENOENT: no such file or directory, open '/home/caodb/.chia/mainnet/config/config.yaml'
at Object.openSync (fs.js:443:3)
at Object.readFileSync (fs.js:343:35)
at Object.exports.getChiaConfig (/home/caodb/CaoDinh/projects/CHIA/chia-client-test/node_modules/chia-client/dist/src/ChiaNodeUtils.js:17:30)
at Object. (/home/caodb/CaoDinh/projects/CHIA/chia-client-test/node_modules/chia-client/dist/src/FullNode.js:6:36)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)

@freddiecoleman
Copy link
Owner

Hmm. Looks like it defaults to mainnet directory. To work around that you could read the file into a buffer and pass that in the config options for cert/key/ca.

@bacao1994
Copy link
Author

Thank sir. I can connect to the testnet now. How I can get the Farmer and Havester information sir?

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

2 participants