namecoin/namecoin — Issue #4: Recently-expired names can't be re-registered
Author: midnightmagic
Created: 2011-10-27 00:57:58+00:00
State: open

Even though they are reported as expired, it looks like the calculation as to whether to allow expired domains to be re-registered uses the current best-height block and not the origin block.. so domains that are reported as expired hundreds of blocks ago (even if you account for the fact the GetDisplay*() call doesn't calculate it the same way) can't be registered currently.

I suspect the fix is to correct the problem in GetTxOfName and feed the GetExpirationDepth() call the nHeight and not the pindexBest->nHeight, otherwise a whole pile of "expired" names are going into un-re-registerable limbo until we come out of the incremental per-block expiration increase at 24000+12000..

However, I don't know if this was intentional. Nor so I know whether fixing this in my own code will make me generate illegal blocks, so.. meh.