Closed tzarebczan closed 5 years ago
I did some research. I don't have an answer yet. I found other claims with a similar problem.
I need to do more investigating to figure out how this could have happened. I see no reason why this would happen.
Also sometimes shows expired :
It clears itself up after a while...I'm guessing after the claimtrie sync.
So it was showing expired because when it's in the mempool its height is marked as 0. So based on the logic it is expired in this case. I added a check that if it's 0 it's never considered expired.
It was showing as spent sometimes because if the claimtrie sync would run between the claimname and the update processing, it would get marked as spent based on the first. If the timing of the update wasn't right it would get stuck in that state too because the claim trie sync only runs on claims that have been updated.
Fixed with 037ca9dd24bf61aaa2d9217616f0acb66d2dddf2
See https://chainquery.lbry.io/api/sql?query=SELECT%20*%20FROM%20claim%20where%20claim_id=%223187461e9df8554bbac34926f3bbfdddcd528a62%22