chia-client
chia-client copied to clipboard
Ca't connect to testnet
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.
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.
Thank sir. I can connect to the testnet now. How I can get the Farmer and Havester information sir?