Open AleksandrRadik opened 2 weeks ago
Are you trying to make a rpc or p2p connection to litecoind? I’m assuming rpc. Make sure you’ve configured your litecoin.conf file correctly, like port, allowed ip, bind it to localhost etc.
On Thu, 27 Jun 2024 at 01:09, AlexRadik @.***> wrote:
Hi guys, I wanna test my mining software for Litecoin, and test it on regtest mode, but when I try to make getblocktemplate request I got error "Litecoin Core is not connected" as I guess, it's cause my node haven't any peer for connection to other node, cause they don't exist and i can't make this request
Expected behavior Get response on getblocktemplate in regtest mode
Actual behavior
Got error { "result": null, "error": { "code": -9, "message": "Litecoin Core is not connected!" }, "id": "regtest" }
To reproduce Just try))
System information
Linux/Ubuntu
Idea for solution I found that bitcoin-core meet the same problem, but ther make this changes https://github.com/bitcoin/bitcoin/commit/95d5d5e6257825bb385cee318d5681597f7f7646 and now it's work well, I know because before I work with Bitcoin Core in regtest. I don't check If you add the same to Litecoin, but maybe it can help.
Thank's for your attention!
— Reply to this email directly, view it on GitHub https://github.com/litecoin-project/litecoin/issues/967, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT43OSAKY2PUFG4PD4GSJLZJNJ2BAVCNFSM6AAAAABJ63DK4WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TMNBWGY3DIMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Are you trying to make a rpc or p2p connection to litecoind? I’m assuming rpc. Make sure you’ve configured your litecoin.conf file correctly, like port, allowed ip, bind it to localhost etc. … On Thu, 27 Jun 2024 at 01:09, AlexRadik @.> wrote: Hi guys, I wanna test my mining software for Litecoin, and test it on regtest mode, but when I try to make getblocktemplate request I got error "Litecoin Core is not connected" as I guess, it's cause my node haven't any peer for connection to other node, cause they don't exist and i can't make this request Expected behavior Get response on getblocktemplate in regtest mode Actual behavior Got error { "result": null, "error": { "code": -9, "message": "Litecoin Core is not connected!" }, "id": "regtest" } To reproduce Just try)) System information Linux/Ubuntu Idea for solution I found that bitcoin-core meet the same problem, but ther make this changes [bitcoin@95d5d5e](https://github.com/bitcoin/bitcoin/commit/95d5d5e6257825bb385cee318d5681597f7f7646) and now it's work well, I know because before I work with Bitcoin Core in regtest. I don't check If you add the same to Litecoin, but maybe it can help. Thank's for your attention! — Reply to this email directly, view it on GitHub <#967>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAT43OSAKY2PUFG4PD4GSJLZJNJ2BAVCNFSM6AAAAABJ63DK4WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TMNBWGY3DIMI . You are receiving this because you are subscribed to this thread.Message ID: @.>
Yep, I configure connectrion right, all other requests work fine (getblock. getblockchaininfo etc.) And for more info I provide litecoin.conf below: regtest=1 server=1 rpcallowip=127.0.0.1 rpcuser=myusername rpcpassword=mypassword
[regtest] rpcbind=127.0.0.1 rpcport=18332
Hey guys, any tips or comments?) How I can run regtest node?
As I see, we need just to include this two if (on screen 1) in this TestChain check(screen2) like in bitcoin, is it posiible? Screen 1:
Screen 2:
Hi guys, I wanna test my mining software for Litecoin, and test it on regtest mode, but when I try to make getblocktemplate request I got error "Litecoin Core is not connected" as I guess, it's cause my node haven't any peer for connection to other node, cause they don't exist and i can't make this request
Expected behavior Get response on getblocktemplate in regtest mode
Actual behavior
Got error { "result": null, "error": { "code": -9, "message": "Litecoin Core is not connected!" }, "id": "regtest" }
To reproduce Just try))
System information
Linux/Ubuntu
Idea for solution I found that bitcoin-core meet the same problem, but ther make this changes and now it's work well, I know because before I work with Bitcoin Core in regtest. I don't check If you add the same to Litecoin, but maybe it can help.
Thank's for your attention!