gcash / bchd

An alternative full node bitcoin cash implementation written in Go (golang)
ISC License
279 stars 101 forks source link

TX Output missing in GetAddressUnspentOutputs #492

Open Ekliptor opened 2 years ago

Ekliptor commented 2 years ago

I have an address with valid outputs: https://blockchair.com/bitcoin-cash/address/qpkajruupllffkut5ly690r35nvzwll64szqrgk0vf

Yet all BCHD nodes do not have any outputs for this address:

grpcurl -d '{"address": "bitcoincash:qpkajruupllffkut5ly690r35nvzwll64szqrgk0vf"}' bchd.greyh.at:8335 pb.bchrpc/GetAddressUnspentOutputs 
{

}
curl -X POST "https://bchd3.prompt.cash:2053/v1/GetAddressUnspentOutputs" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{  \"address\": \"bitcoincash:qpkajruupllffkut5ly690r35nvzwll64szqrgk0vf\",  \"include_mempool\": false,  \"include_token_metadata\": false}"

{
  "outputs": [],
  "token_metadata": []
}

I checked BestHeight already and the 2 nodes above are at a height > 712,780 and therefore should have the TX. Assuming I'm not missing something, this should eventually fork BCHD off the network? (unless bug in API layer)

edit.: and I can confirm both TX hashes are also missing on the GetTransaction() API call

66b1167575fdb40d632bdd94114fccdfa10e1ec28fec767ce7bf44dc507475ce
867fc01be92ce90c8d51ee2f8f5ee9b372049505eb477e734b7d71d5c787044b
Ekliptor commented 2 years ago

After some digging I found that the node of imaginary username is the only one recording all TX currently. Talking with him to figure out why.

grpcurl -d '{"address": "bitcoincash:qpkajruupllffkut5ly690r35nvzwll64szqrgk0vf"}' bchd.imaginary.cash:8335 pb.bchrpc/GetAddressTransactions

Worst case we have to bootstrap from his local DB

zquestz commented 2 years ago

After some digging I found that the node of imaginary username is the only one recording all TX currently. Talking with him to figure out why.

grpcurl -d '{"address": "bitcoincash:qpkajruupllffkut5ly690r35nvzwll64szqrgk0vf"}' bchd.imaginary.cash:8335 pb.bchrpc/GetAddressTransactions

Worst case we have to bootstrap from his local DB

I see the same number of transactions on all nodes... All have 2 confirmed transactions for that address...

zquestz commented 2 years ago

I am able to see both transactions in this ticket on my node. Easy to check at https://explore.cash.

https://explore.cash/mainnet/tx/66b1167575fdb40d632bdd94114fccdfa10e1ec28fec767ce7bf44dc507475ce https://explore.cash/mainnet/tx/867fc01be92ce90c8d51ee2f8f5ee9b372049505eb477e734b7d71d5c787044b

alexanderramos89 commented 2 years ago

Please do

B. Alexander Ramos.


From: Josh Ellithorpe @.> Sent: Tuesday, November 9, 2021 2:53:12 AM To: gcash/bchd @.> Cc: Subscribed @.***> Subject: Re: [gcash/bchd] TX Output missing in GetAddressUnspentOutputs (Issue #492)

I am able to see both transactions in this ticket on my node. Easy to check at https://explore.cash.

https://explore.cash/mainnet/tx/66b1167575fdb40d632bdd94114fccdfa10e1ec28fec767ce7bf44dc507475ce https://explore.cash/mainnet/tx/867fc01be92ce90c8d51ee2f8f5ee9b372049505eb477e734b7d71d5c787044b

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/gcash/bchd/issues/492#issuecomment-963895840, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUMCSRLCTRTQ3EMVN7JMI7LULDHORANCNFSM5HROWNWQ.

Ekliptor commented 2 years ago

I didn't know about the BCHD explorer. Great thx!

The electroncash node doesn't have my last TX (that imaginary username has), but because its behind from chain tip:

grpcurl -d '{"address": "bitcoincash:qpkajruupllffkut5ly690r35nvzwll64szqrgk0vf"}' bchd-mainnet.electroncash.de:8335 pb.bchrpc/GetAddressTransactions

These errors have been starting about 2 days ago on prompt.cash and manual inspection showed each time that the TX was indeed not recorded at that time.

Will monitor it more, but for now we conclude its only long delays for now?

alexanderramos89 commented 2 years ago

Thank you so much

B. Alexander Ramos.


From: Ekliptor @.> Sent: Tuesday, November 9, 2021 3:15:46 AM To: gcash/bchd @.> Cc: Alex ramos @.>; Comment @.> Subject: Re: [gcash/bchd] TX Output missing in GetAddressUnspentOutputs (Issue #492)

I didn't know about the BCHD explorer. Great thx!

The electroncash node doesn't have my last TX (that imaginary username has), but because its behind from chain tip:

grpcurl -d '{"address": "bitcoincash:qpkajruupllffkut5ly690r35nvzwll64szqrgk0vf"}' bchd-mainnet.electroncash.de:8335 pb.bchrpc/GetAddressTransactions

These errors have been starting about 2 days ago on prompt.cash and manual inspection showed each time that the TX was indeed not recorded at that time.

Will monitor it more, but for now we conclude its only long delays for now?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/gcash/bchd/issues/492#issuecomment-963909645, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUMCSRPEMCC7LWB7HDGTL4TULDKDFANCNFSM5HROWNWQ.