-
Notifications
You must be signed in to change notification settings - Fork 42
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
Connecting QBitNinja with Litecoin #85
Comments
If you want Litecoin, you need Litecoin node software; not bitcon core. |
I have Litecoin Core [testnet] running in Azure alongside QBitNinja.Listener, but my problem in my app is using clientQBitNinja.GetBalance. The Operations.Count always return 0. The pub key it's using has 10 test coins there and its using that pub key to get the balance. but without this operations count, i'm unable to see the unspentCoins and effectively get the balance. QBitNinja.Listener will give this output: QBitNinja.Listener Information: 0 : Start initial indexing If it says initial indexing terminated, will QBitNinja continue to work? |
Please read the doc, after indexing you need: "QBitNinja.Listener.Console.exe --Listen" |
how do you instanciate |
QBitNinjaClient clientQBitNinja = new QBitNinjaClient(NetworkAPI, m_network); The NetworkAPI is assigned "http://tapi.qbit.ninja/" After going back through the readme I was able to get the Listener.Console.exe up and running. |
|
Ah, ok i've updated the test network to the web address I use for my azure web application. Now when it runs the task to retrieve the balance, there is a bit of a wait. Then it returns this error: TaskCanceledException: A task was canceled. I'm testing on Esteban's Unity package for bitcoin for testing then ill make the changes in my app. Do you think the task is just timing out? |
I'm having trouble binding RPC at my address. I'm also looking into the possibility that by default my VM on Azure may be blocking RPC communication from the default networking settings. Did you have to set up an inbound port rule to allow access to the connection? If that isnt the problem then it may be how I have litecoin.conf set up. I do get a message in the debug log: //## //# IMPORTANT: do not use the daemon's wallet datadir=/ltc //# Network-related settings: //# Run on the test network instead of the real lite network. //# Listening mode, enabled by default except when 'connect' is being used. Port 19335 (TestNet4) //# //# server=1 tells litecoind to accept JSON-RPC commands |
The timeout has nothing to do with this. The front does not connect to RPC. I don't really know how to troubleshoot this. If you can manage to get azure logs for the front it would be good. |
It's strange but when I enabled "Application Logging" for the webapp in Azure, it started working. Even after disabling "Application Logging". My app goes through the flow and I get a Transaction Success result from BroadcastResponse broadcastResponse = _clientQBitNinja.Broadcast(_customerTransaction).Result; But the wallets and testnet do not reflect the transaction. |
please do not email, just copy paste here. What is your server url? |
OK, let's try to solve it, can you try to run the front under visual studio with the same config as the website? |
I started running QBitNinja in Visual Studio with the same config as the website. |
Any exception or anything you can notice? You have the same timeout? |
When reviewing the logs there were a few exceptions, this was one of them: System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089The client could not finish the operation within specified timeout. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) |
I should be able to fix that, can you send me your account storage creds by mail? |
Sent |
@TJvrDev can you verify that your storage account and your front website reside in the same datacenter ? (region) |
It looks like the storage account resides in East US & West US. The website resides in Central. Ill get them in the same region. |
Alright I have Web App residing in East US now. I did have to create a new web app but I applied to updated PublishSettings for QBitNinja and republished it. |
The new server url is: |
I will try something. |
Actually it solved, it. It is not timing out now. |
It is quite slow though... Querying on an address take a while. |
Actually timing out. It does not make sense. What is your machine specification for the front? I am wondering if the server does not get restarted because it uses too much memory or something like this. One sec, I check on my servers. |
Ok so this is my tier for the service plan |
My service plan for the web app shows Standard: 1 small. I'll try to change it to match yours. |
Before it had: Now has: |
It is still timing out it seems. That is super strange. Trying to replicate it as much as I can. |
Can you get the applications logs on your server at all? Is it still this timeout? |
I've successfully setup QBitNinja using Bitcoin Core. I am having trouble configuring with litecoin. The readme just specifies with Bitcoin Core. Is it safe to assume that i'll need to install litecoin core to use the altcoin capabilities with Litecoin? Would that also mean that if I used an altcoin that I would need to use a different component than Bitcoin Core?
The text was updated successfully, but these errors were encountered: