Bitcoin Forum
April 30, 2024, 06:42:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Pre-generating and using large numbers of addresses seems to be impossible  (Read 674 times)
crazylikeafox (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 251



View Profile
November 20, 2012, 06:28:17 PM
 #1

I just want a large number of addresses (maybe 20,000) that are valid and active in my official client wallet.  This seems to be impossible.  I assumed that using Bitcoind in combination with a PHP script that conencts to it via RPC would work, but bitcoind won't even run - it starts, and then I try to connect to it via RPC and it never does anything (yes, I have confirgured the RPC password and username).  You can generate addresses of course, using tools like vanitygen, but importing them into the official client is such an onerous task that no one would dare attempt it on any kind of scale. 

Are there any tools that will enable me to generate a large number of addresses that will be recognized in my wallet by the official client?  I am pulling my hair out here.
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714502529
Hero Member
*
Offline Offline

Posts: 1714502529

View Profile Personal Message (Offline)

Ignore
1714502529
Reply with quote  #2

1714502529
Report to moderator
1714502529
Hero Member
*
Offline Offline

Posts: 1714502529

View Profile Personal Message (Offline)

Ignore
1714502529
Reply with quote  #2

1714502529
Report to moderator
1714502529
Hero Member
*
Offline Offline

Posts: 1714502529

View Profile Personal Message (Offline)

Ignore
1714502529
Reply with quote  #2

1714502529
Report to moderator
astutiumRob
Full Member
***
Offline Offline

Activity: 201
Merit: 100



View Profile WWW
March 10, 2013, 05:26:19 AM
 #2

Are there any tools that will enable me to generate a large number of addresses that will be recognized in my wallet by the official client?  I am pulling my hair out here.
Low-tech method is get the windows bitcoin client and just click "add" as many times as you like Smiley

Slighly more high-tech is to use https://bitcointalk.org/index.php?topic=34028.0

www.astutium.com - domains | hosting | vps | servers | cloud - proud to accept bitcoins. UK colocation for BFL and KNC ASICs in Tier3+ DC
Register Domains with BTC
Want to make some bitcoins ? Miner on ebay | Buy GH/s
SRoulette
Sr. Member
****
Offline Offline

Activity: 364
Merit: 252



View Profile WWW
March 10, 2013, 08:59:50 AM
 #3

I just want a large number of addresses (maybe 20,000) that are valid and active in my official client wallet.  This seems to be impossible.  I assumed that using Bitcoind in combination with a PHP script that conencts to it via RPC would work, but bitcoind won't even run - it starts, and then I try to connect to it via RPC and it never does anything (yes, I have confirgured the RPC password and username).  You can generate addresses of course, using tools like vanitygen, but importing them into the official client is such an onerous task that no one would dare attempt it on any kind of scale. 

Are there any tools that will enable me to generate a large number of addresses that will be recognized in my wallet by the official client?  I am pulling my hair out here.

the quickest way would (without scripting) would be to use bitcoin vanity generator and set the match to "1".
Then redeem the private keys (this would be the slow part).


mintymark
Sr. Member
****
Offline Offline

Activity: 286
Merit: 251


View Profile
March 10, 2013, 09:19:27 AM
 #4

There may be an easier way. Shutdown your client, and add keypool=somenumber to the bitcoin.conf file.

I have not tried this in recent clients but if you set a value of 20000, it used to take about half an hour on start up to generate these. I have no reason to think this will be particularly different in more recent clients, maybe try a smaller number first if you like.

The way it works is new addresses will be given from this pool, and when the pool is exhaused or whenever the keypool variable is bigger than the reserve, then the pool will be expanded.

(So if you now set keypool=30000 and restart, more keys will be generated.)



[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
PoorGirl
Newbie
*
Offline Offline

Activity: 30
Merit: 0



View Profile
April 03, 2013, 08:15:16 PM
 #5

How comes its so slow to add private keys using importprivkey ?

On a Intel Dual Core 1.8Ghz machine where bitcoind is stored on a big ramdisk the total speed is approx 2 keys/second.
CPU is idle at 0-1%, means there is massive time wasted for nothing.

Is it the RPC interface that's so slow ? If the database would work hard it would show in CPU usage. But there is none. To calc the public hashes/addresses etc also is not the limiting factor as it would show up in Task Manager. And yes, I set rescan to false ..

 Huh
crazylikeafox (OP)
Sr. Member
****
Offline Offline

Activity: 798
Merit: 251



View Profile
April 04, 2013, 12:30:09 AM
 #6

How comes its so slow to add private keys using importprivkey ?

On a Intel Dual Core 1.8Ghz machine where bitcoind is stored on a big ramdisk the total speed is approx 2 keys/second.
CPU is idle at 0-1%, means there is massive time wasted for nothing.

Is it the RPC interface that's so slow ? If the database would work hard it would show in CPU usage. But there is none. To calc the public hashes/addresses etc also is not the limiting factor as it would show up in Task Manager. And yes, I set rescan to false ..

 Huh

ImportPrivKey is definitely not the answer - it is far too slow.  I was finally able to do it pretty easily with this:

https://bitcointalk.org/index.php?topic=101708.msg1349901#msg1349901

charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 04, 2013, 02:40:56 AM
 #7

Importing using the RPC command scans the blockchain looking for transactions for that key, which can take 1+ minutes. It might be quicker to write code to open the Berkeley database yourself and just insert the keys into the key tree.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!