New namecoin branch : fastindex

Namecoin, NMControl
Post Reply
khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

New namecoin branch : fastindex

Post by khal »

https://github.com/khalahan/namecoin/tree/fastindex

I've changed the nameindex.dat structure to allow faster name_list (11 times) and name_scan (3 times) :)

Warning : nameindex.dat structure change between the master branch and this one. I advise you to work on a full blockchain copy too to avoid skipping some names.

I currently use this branch on my big wallet, so i would say it is stable enough for long term use, but do as you want :p (and report if it works or not :p)

To test it on your current repo :

Code: Select all

git remote add khalahan git://github.com/khalahan/namecoin.git
git checkout -b fastindex
git pull khalahan fastindex
Or with a new repo :

Code: Select all

git clone git://github.com/khalahan/namecoin.git
git checkout fastindex
Then :
- compile (make -f makefile.unix for example)
- delete nameindex.dat
- start namecoin
- reconstruct nameindex.dat with : namecoind rescanfornames
- test a : namecoind name_scan "" 1000000 :D
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: New namecoin branch : fastindex

Post by khal »

Here is a compiled version for linux, 64 bits :
http://dot-bit.org/files/temp/namecoind-fastindex
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: New namecoin branch : fastindex

Post by khal »

I added a patch to automatically create the new index on first launch, to avoid manual errors and permit an easy upgrade for everybody.

Please, test and report if there are errors or not :)
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: New namecoin branch : fastindex

Post by khal »

khal wrote:Here is a compiled version for linux, 64 bits :
http://dot-bit.org/files/temp/namecoind-fastindex
I've updated the binary with latest patch.
So, simply start namecoind and it'll create the new index and use it.
khal wrote:Please, test and report if there are errors or not :)
Good idea :p
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: New namecoin branch : fastindex

Post by phelix »

Better late than never: has this found it's way to master?
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

virtual_master
Posts: 541
Joined: Mon May 20, 2013 12:03 pm
Contact:

Re: New namecoin branch : fastindex

Post by virtual_master »

That sounds good.
It is working only on your namecoind branch ?
Or it can be used on the newest namecoin-qt client from snailbrain also ?
http://namecoinia.org/
Calendars for free to print: 2014 Calendar in JPG | 2014 Calendar in PDF Protect the Environment with Namecoin: 2014 Calendar in JPG | 2014 Calendar in PDF
BTC: 15KXVQv7UGtUoTe5VNWXT1bMz46MXuePba | NMC: NABFA31b3x7CvhKMxcipUqA3TnKsNfCC7S

Post Reply