Bitcoin Forum
May 10, 2024, 05:11:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: do new installs automatically generate 100 addresses?  (Read 1907 times)
Alex Beckenham (OP)
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
April 06, 2011, 12:46:50 PM
 #1

Hi,

I backed up my wallet about 1-2 weeks ago, but since then I have received a rather large amount, and wallet.dat just disappeared today with a hard drive failure.

What I'm wondering is, if the default client generates 100 addresses, then the address that received the large amount should be backed up already, correct? Even though it received the money after the backup.

Thanks... you never know what minute of the day your hard drive is going to fail Smiley

According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Cdecker
Hero Member
*****
Offline Offline

Activity: 489
Merit: 504



View Profile WWW
April 06, 2011, 02:00:44 PM
 #2

That's the main idea, but the addresses may have been used for change too. It's worth a try.
If you already had that address before the crash you'll definitely get your coins back, I myself used a deleted block chain several times, and I always got my coins ^^
Let us know what happens.

Want to see what developers are chatting about? http://bitcoinstats.com/irc/bitcoin-dev/logs/
Bitcoin-OTC Rating
MoonShadow
Legendary
*
Offline Offline

Activity: 1708
Merit: 1007



View Profile
April 06, 2011, 02:48:23 PM
 #3

Hi,

I backed up my wallet about 1-2 weeks ago, but since then I have received a rather large amount, and wallet.dat just disappeared today with a hard drive failure.

What I'm wondering is, if the default client generates 100 addresses, then the address that received the large amount should be backed up already, correct? Even though it received the money after the backup.

Thanks... you never know what minute of the day your hard drive is going to fail Smiley


Yes.  If you have a good backup of your wallet.dat file, just reinstall the newest client and put a copy of your backup into the proper directory before starting it up.  It should find both your new and old funds as it bootstraps the blockchain.

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
April 06, 2011, 08:49:40 PM
 #4

When starting the bitcoin client when no wallet.dat existed, the client will show one address.  At that point is the bitcoin address pool really already populated with the 100 addresses?

I suspect it only adds them the first time you explicitly click "New".

Thus on a new installation if I were to simply to have shut down Bitcoin and backed up wallet.dat, that backup would not have any of the addresses that are then added to the wallet after the first time "New" is clicked.

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


View Profile
April 06, 2011, 09:17:45 PM
 #5

When starting the bitcoin client when no wallet.dat existed, the client will show one address.  At that point is the bitcoin address pool really already populated with the 100 addresses?

It starts filling the keypool immediately.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
randomguy7
Hero Member
*****
Offline Offline

Activity: 527
Merit: 500


View Profile
April 06, 2011, 09:27:32 PM
Last edit: April 06, 2011, 09:48:28 PM by randomguy7
 #6

Btw, does someway somebody (typo) remember the cmd to change the default to another (higher) value? Is there a way to show how many of the addresses were replaced by new ones since the last backup? If not, a counter feature for this would be quite useful.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


View Profile
April 06, 2011, 09:39:43 PM
 #7

Btw, does someway remember the cmd to change the default to another (higher) value?

-keypool=1000

Is there a way to show how many of the addresses were replaced by new ones since the last backup?

getinfo outputs "keypoololdest", which is the Unix timestamp when the oldest key was created. Your backup must be more recent than this.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Alex Beckenham (OP)
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
April 06, 2011, 11:00:26 PM
 #8

This is all good news, and what I thought I had read, thanks.

I'll report back once it restored.

On that note, I do feel that there are many many threads/posts on backing up, and very very few on the correct way to restore after a backup.

(So thanks creighto for that note)

Alex Beckenham (OP)
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
April 07, 2011, 05:50:43 AM
 #9

Okay after a bit of another scare, I got it all back!

The scare was that after restoring the old wallet and running the new install, it instantly listed all my transactions up until April 1st, but they were all greyed out on 0/conf.

Then after all the blocks downloaded it started populating with all the newer transactions, right up until yesterday's.

Anyway, what a great excuse it was to get my first SSD  Grin

To those that were working with me via Skype recently, I've had to get a new account, and I'll PM you with the new ID.


legion050
Newbie
*
Offline Offline

Activity: 51
Merit: 0



View Profile
April 08, 2011, 04:58:18 AM
 #10

sorry to de-rail post.. but..

is there a limit or reason to not do something like

-keypool=20000

?

so i could have alot just sitting there
BitterTea
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
April 08, 2011, 05:10:48 AM
 #11

sorry to de-rail post.. but..

is there a limit or reason to not do something like

-keypool=20000

?

so i could have alot just sitting there

I'd guess memory and disk space are the two big reasons.
MoonShadow
Legendary
*
Offline Offline

Activity: 1708
Merit: 1007



View Profile
April 08, 2011, 05:13:07 AM
 #12

sorry to de-rail post.. but..

is there a limit or reason to not do something like

-keypool=20000

?

so i could have alot just sitting there

Disk space, but if you are an online merchant, a keypool of 20K might be a reasonable number.  It would take the client quite some time to crap out so many on an average desktop, but this would only be an issue upon first startup.

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
legion050
Newbie
*
Offline Offline

Activity: 51
Merit: 0



View Profile
April 08, 2011, 08:32:28 PM
 #13

so i tested it out

i used -keypool=1000000

file size went from 128kb to 680,076kb

and it took ~3hrs

very interesting..
MoonShadow
Legendary
*
Offline Offline

Activity: 1708
Merit: 1007



View Profile
April 08, 2011, 09:00:26 PM
 #14

Now I wonder if one must start the client with the large keypool settings in order to maintain said large keypool, or if doing this once only will result in the client using the very large keypool until it's down to only 100 unused keypairs.  This would be a reasonable way to back up for archival purposes, as such a large keypool would take most people years to consume.

"The powers of financial capitalism had another far-reaching aim, nothing less than to create a world system of financial control in private hands able to dominate the political system of each country and the economy of the world as a whole. This system was to be controlled in a feudalist fashion by the central banks of the world acting in concert, by secret agreements arrived at in frequent meetings and conferences. The apex of the systems was to be the Bank for International Settlements in Basel, Switzerland, a private bank owned and controlled by the world's central banks which were themselves private corporations. Each central bank...sought to dominate its government by its ability to control Treasury loans, to manipulate foreign exchanges, to influence the level of economic activity in the country, and to influence cooperative politicians by subsequent economic rewards in the business world."

- Carroll Quigley, CFR member, mentor to Bill Clinton, from 'Tragedy And Hope'
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


View Profile
April 08, 2011, 09:21:34 PM
 #15

You only need to do it once if you don't need the pool to re-fill to that level.

I wonder if that many keys will slow Bitcoin down. I believe wallet.dat needs to be stored entirely in memory, so it will at least increase memory usage.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
legion050
Newbie
*
Offline Offline

Activity: 51
Merit: 0



View Profile
April 08, 2011, 09:24:02 PM
 #16

You only need to do it once if you don't need the pool to re-fill to that level.

I wonder if that many keys will slow Bitcoin down. I believe wallet.dat needs to be stored entirely in memory, so it will at least increase memory usage.

it does put it entirely in memory, and turning bitcoin on now takes almost entirely a minute.
legion050
Newbie
*
Offline Offline

Activity: 51
Merit: 0



View Profile
April 08, 2011, 09:26:09 PM
 #17

Now I wonder if one must start the client with the large keypool settings in order to maintain said large keypool, or if doing this once only will result in the client using the very large keypool until it's down to only 100 unused keypairs.  This would be a reasonable way to back up for archival purposes, as such a large keypool would take most people years to consume.

just turning on bitcoin with the -keypool command does not start the creation. you must click the "new address" button in the address book for it to start creating the new pool of addresses.

and if i made the number say 50 it would create 50 every time i hit create new address.
legion050
Newbie
*
Offline Offline

Activity: 51
Merit: 0



View Profile
April 08, 2011, 09:34:33 PM
 #18

sorry for so many posts one after another.

http://img858.imageshack.us/img858/8826/bitcoinlargememory.png
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!