CounterpartyXCP / counterparty-core

Counterparty Protocol Reference Implementation
http://counterparty.io
MIT License
287 stars 206 forks source link

API Returns Incorrect Values #2477

Closed pinnate-modo closed 1 day ago

pinnate-modo commented 3 weeks ago

e.g. it will report null consensus hashes in the /blocks/<block_height> route, and if you look in the sqlite3 db you'll see that the values are there and correct. Similar issues were reported with MINTS' supply.

ouziel-slama commented 3 weeks ago

This happens when a block is currently being parsed. The blocks are initially inserted with null hashes, and the hashes are updated at the end of the parsing process. Additionally, the API database may take some time to be updated as all events need to be parsed. If this only occurs with the last block, it is not a bug.

adamkrellenstein commented 3 weeks ago

I think this should be fixed, but it's not urgent.

ouziel-slama commented 1 day ago

fixed here https://github.com/CounterpartyXCP/counterparty-core/pull/2700/commits/2c3dec63bbd805cbc2ef6adcb8b02ba59713442e