dashpay / insight-api

A Dash blockchain REST and WebSocket API Service
MIT License
38 stars 72 forks source link

empty uxto array for live transactions #19

Closed coolaj86 closed 6 years ago

coolaj86 commented 6 years ago

It appears that if a transaction occurs while the server is running and the address is checked before the first confirmation is sent (and maybe after as well) then the uxto endpoint returns an empty array rather than showing the uxto with 0 confirmations (or any confirmations) after the first confirmation is received.

Steps to reproduce:

  1. Create a raw transaction
  2. Check, for example http://104.236.12.147:3001/insight-api-dash/addr/XwZ3CBB97JnyYi17tQdzFDhZJYCenwtMU8/utxo
  3. Check, for example http://104.236.12.147:3001/insight-api-dash/addr/XwZ3CBB97JnyYi17tQdzFDhZJYCenwtMU8
  4. Note that both endpoints show data
  5. Wait for a confirmation
  6. Refresh both endpoints
  7. See that the uxto endpoint has an empty array even though the addr endpoint shows transactions
coolaj86 commented 6 years ago

I found that this occurs when the libzmq is not installed correctly and compiled against correctly. I've created more complete instructions for doing so here:

https://github.com/dashhive/dashd-installer.sh