Page 1 of 7

Namecoin 15/10/13 Hard Fork - update before 8th Dec

Posted: Tue Oct 15, 2013 9:12 pm
by snailbrain
as per libcoin's thread: http://dot-bit.org/forum/viewtopic.php?f=2&t=1295

https://github.com/namecoin-qt/namecoin-qt

DETAILS of Hard Fork: https://bitcointalk.org/index.php?topic=322939.0
Hard-fork is set to happen at block 150000 (~76 days from now). Before that bad name_* transactions are allowed, but won't be processed (i.e. won't be saved to name DB). After that they will be rejected, as well as blocks containing them.

At first start nameindexfull.dat will be rescanned (slow - be patient). If something goes wrong, delete it to force another rescan.
nameindexfull.dat is checked by version (rescanned if below 0.3.72).
If you can, please donate to the coder for his time :

NMC: MyWQAeXSpLLH6GUCtyT6xAVx979YXfWgLK
BTC: 15YPPrb4YNLPyjwJ38cfRJyPFKPK1ag37b

Please post all "issues" here... check the code if you can.. (before someone makes official)

bug: Possible problem with rescan/nameindex.dat --- http://dot-bit.org/forum/viewtopic.php?p=6748#p6748
try delete nameindexfull.dat for now..

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Wed Oct 16, 2013 5:35 am
by domob
snailbrain wrote:bug: Possible problem with rescan/nameindex.dat --- http://dot-bit.org/forum/viewtopic.php?p=6748#p6748
try delete nameindexfull.dat for now..
Thanks again for the quick fix and your as well as the coder's time! :) However, I have to disappoint you regarding the bug: Deleting nameindexfull.dat to force the rescan did not fix the issue for me. After the rescan, the code still crashed, and when restarted it still didn't find any names.

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Wed Oct 16, 2013 10:56 am
by snailbrain
domob wrote:
snailbrain wrote:bug: Possible problem with rescan/nameindex.dat --- http://dot-bit.org/forum/viewtopic.php?p=6748#p6748
try delete nameindexfull.dat for now..
Thanks again for the quick fix and your as well as the coder's time! :) However, I have to disappoint you regarding the bug: Deleting nameindexfull.dat to force the rescan did not fix the issue for me. After the rescan, the code still crashed, and when restarted it still didn't find any names.
ok.. there is an update..

also, maybe you have corrupted blockchain?
downloading chain works from scratch (on linux).. but obviously need to sort this problem..

don't forget to make backups

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Wed Oct 16, 2013 11:16 am
by phelix
Will try.

I guess you have seen this post:
Deafboy wrote:Fix for crash / empty db after crash from cjd:
https://github.com/cjdelisle/namecoin-q ... 63265799f6

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Wed Oct 16, 2013 1:39 pm
by phelix
Works like a charm so far. Just updated d/wav

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Wed Oct 16, 2013 2:17 pm
by domob
phelix wrote:Will try.

I guess you have seen this post:
Deafboy wrote:Fix for crash / empty db after crash from cjd:
https://github.com/cjdelisle/namecoin-q ... 63265799f6
Yes I have. With the namecoin-qt git of an hour ago (which included some changes relative to yesterday, but I'm not sure about this fix in particular) the error is still there. Guess I'll have to wait a little longer.

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Wed Oct 16, 2013 2:56 pm
by snailbrain
we have not tested this with the fakeupdates.. but in principle it should work..

libcoin is being very helpful in PM...

but maybe should wait on merging into official repos until everyone completely agrees everything is O.K.

(not completely fixed all issues yet)

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Thu Oct 17, 2013 9:43 pm
by phelix
There is a discussion going on behind the scenes whether to go along with the current fix or improve it. TBH I would prefer to have it in public.

Feel free to dig into the current fix:
https://github.com/namecoin-qt/namecoin-qt

Normally I would say pull requests are the way to go but this important matter should be discussed and double checked first...

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Thu Oct 17, 2013 10:34 pm
by snailbrain
I'll commit a small patch soon (removing block number check at line 1575)
Have been speaking with libcoin and he has been extremely helpful regarding the issue..
Both agree that the code is a bit messy, but there is a lot of work to be done on that front, on namecoin as a whole.
hopefully this patch will fix the problem at hand..
BUT...
as phelix said, it would be best to get as much input as possible from "everyone"

Re: Namecoin 15/10/13 Hard Fork - Thread

Posted: Fri Oct 18, 2013 11:35 am
by snailbrain