MetacoSA / QBitNinja

An Open Source and powerful blockchain API
MIT License
68 stars 42 forks source link

Balance issue #105

Closed ArtjomP closed 4 years ago

ArtjomP commented 4 years ago

Hello there! I got a balance issue from yesterday.

var network = Network.Main;
var client = new QBitNinjaClient(network);
var destination = BitcoinAddress.Create("1911V1aepiPWZxVKghp9jV9JwvUAhH1enp", network);
var balanceModel = await client.GetBalance(destination, true);

And I get balanceModel.Operations.Count == 0 But actually: balance

Could you help me, please?

Thank you in advance!

NicolasDorier commented 4 years ago

@ArtjomP yestersday I swtich the storage because I reindexed the whole chain so we pay less. Sadly, it seems there is an issue in the indexation, I won't be able to fix it quick but checking it.

ArtjomP commented 4 years ago

Thank you! If I can help you somehow you can count on me.

NicolasDorier commented 4 years ago

@ArtjomP so we stopped indexing properly from block 539,700. I will fix this, but because it is very very slow to sync, it might take 3 or 4 days to go back to normal.

Bassist067 commented 4 years ago

Hi Nicolas, first of all - the QBitNinja rocks! The really most easy solution for blockchain integration. We are experiencing these issues too, so I thought maybe you can share Azure template for your setup with the QBitNinja server. It could help us a lot to set up the node quickly.

Also, according to your explanation on how it's working, it sounds possible to replace ServiceBus with AWS SQS, Storage with S3 and web app with the AWS Lambda. A lot of folk would benefit from the AWS port, what do you think?

NicolasDorier commented 4 years ago

It is still synching, that's why there is still the problem... It is so slow that it might take again 3 or 4 days :(

AWS port is not possible. I am using all kind of trick to take the best of Azure storage so that it can sync.

I do not maintain that much this project anymore, because I now believe that the best way to build your project is by having a solution which do not require indexing the whole blockchain and which can easily get the balances of HD wallets (like https://github.com/dgarage/NBXplorer/).

QBitNinja is good for learning and for simple applications, but I think it is now way too slow to sync to be practical.

Bassist067 commented 4 years ago

thanks, I'll give it a try. What should I use for the transaction sending? The NBitcoin is literally the only viable solution for .NET Development as I see it

NicolasDorier commented 4 years ago

@Bassist067 Check the docs in NBXplorer project. You also have some sample_tests in the project you can take a look to.

bitcoinbrisbane commented 4 years ago

Thanks @NicolasDorier, this guy https://api.qbit.ninja/balances/1Gpwq53eau1AyNADgpBrNJW6p1yE4Px8VX has the same issue :(

pda1989 commented 4 years ago

Hi, @NicolasDorier! How the sync is going, how long approximately left to wait?

GnWorld commented 4 years ago

Still in sync?

bitcoinbrisbane commented 4 years ago

yay, mine has now synced!

zeuspay commented 4 years ago

Hello, @NicolasDorier! I see some of you say it can be used, but I can't do it here. Is it not completely good yet? Please let me know if you understand. Thank you.

bitcoinbrisbane commented 4 years ago

@zeuspay seem to be up to July 2019

zeuspay commented 4 years ago

@bitcoinbrisbane What do you mean?

NicolasDorier commented 4 years ago

Almost done, still like 10K blocks. Sorry for that. :(

bitcoinbrisbane commented 4 years ago

@bitcoinbrisbane What do you mean?

Ive monitoring old addresses. An address first seen in July started working :)

bitcoinbrisbane commented 4 years ago

Almost done, still like 10K blocks. Sorry for that. :(

Awesome! I've done a lot of refactoring to use NBXplorer. Be a shame to see QBitNinja die. Perhaps we could mirror?

NicolasDorier commented 4 years ago

@bitcoinbrisbane it won't die, it is quite low maintainance, the storage is expensive but I guess we can keep it up.

bitcoinbrisbane commented 4 years ago

More than happy to tip a few sats!

NicolasDorier commented 4 years ago

I would advise you to self-host qbitninja so that it is faster for you and it does not break if I do a bad update. But the main server will still be here.

littleAnarchy commented 4 years ago

Synchronizing stopped on 592299 block.

NicolasDorier commented 4 years ago

@littleAnarchy no it did not, normally it is now fully synched.

bozhday commented 4 years ago

Nicolas, It is very likely that not all the data entered the index. Example:

https://api.qbit.ninja/balances/1DhdEJBtYcWjuvhnDhmcGD492EB2Ce3JDW Last tran: 7d43b68ba27023752070c3aa0f900fd5d62f4813615772e9468a39e9af4487d0 from 2019-09-09T08:25:45+00:00

https://www.blockchain.com/btc/address/1DhdEJBtYcWjuvhnDhmcGD492EB2Ce3JDW Last tran: 06ebc9d9654a42470b1ec23596dc3a6ec11aeb03370111be8a633587d482ecd7 from 2019-09-16 10:26:51

zeuspay commented 4 years ago

@NicolasDorier Hello, I have successfully operated the coin this morning, but I can’t use it in the afternoon.

NicolasDorier commented 4 years ago

@bozhday it seems you are right. I will fix it tomorrow, maybe missing a few last blocks. Unsure why it did happen though.

NicolasDorier commented 4 years ago

@bozhday @zeuspay it is synching the last blocks, should be back in normal in a few hours.

bozhday commented 4 years ago

Nicolars, excellent work, thank you!

NicolasDorier commented 4 years ago

Can I close that everybody is good now?

bitcoinbrisbane commented 4 years ago

Can I close that everybody is good now?

Working for me

NicolasDorier commented 4 years ago

closing this as nobody complains