Bitcoin Forum
May 07, 2024, 02:25:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: max addresses supported by a single wallet  (Read 1303 times)
c0ldfusi0nz (OP)
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
February 09, 2013, 08:15:03 PM
 #1

I'd have posted in the developers forum by I'm constrained by my newbie status. Can anyone link me to documentation about the maximum / recommended max number of addresses you should have in a single wallet? The only documentation I've been able to find on the bitcoin wiki is "Running getnewaddress too often, however, will cause your wallet to become filled with many empty addresses. It is therefore recommended to in some way limit the number of unfunded addresses each user can request."

Is there a point at which you'd experience performance degradation?
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715048718
Hero Member
*
Offline Offline

Posts: 1715048718

View Profile Personal Message (Offline)

Ignore
1715048718
Reply with quote  #2

1715048718
Report to moderator
1715048718
Hero Member
*
Offline Offline

Posts: 1715048718

View Profile Personal Message (Offline)

Ignore
1715048718
Reply with quote  #2

1715048718
Report to moderator
1715048718
Hero Member
*
Offline Offline

Posts: 1715048718

View Profile Personal Message (Offline)

Ignore
1715048718
Reply with quote  #2

1715048718
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4623



View Profile
February 09, 2013, 10:38:55 PM
 #2

I'm not aware of any specific limit or rule-of-thumb numbers.  I believe it depends quite a bit on the capabilities of the particular cumpouter you happen to be using.  There is probably also some dependency on the version of client software you are using.  Do you expect to be needing to generate hundreds of thousands of addresses for some reason?
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
February 10, 2013, 02:22:06 AM
 #3

Is there a point at which you'd experience performance degradation?

With versions of the client earlier than the yet unreleased v0.8 the Bitcoin.org client had to do a ton or work with each spend and used a database that wasn't a great fit for the job.   With v0.8 the wallet.dat is still bdb, but a good chunk of the heavy lifting has been made easier by the switch to LevelDB.  So this means the problem with having lots of addresses and transactions in the wallet experience with versions prior to v0.8 should drop significantly if not disappear entirely.   I don't know if any benchmarks have been performed with v0.8 to know where the bounds are.  Under versions prior to v0.8, having as few as a thousand addresses with transactions caused behavior to range from "sluggish" to "unacceptable", depending on your hardware.

At some point in the future the Bitcoin.org client won't even use bdb whatsoever (not even for the wallet) anymore.


Unichange.me

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


K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
February 10, 2013, 02:36:32 AM
 #4

so can i make now a wallet.dat with ~46M keys?

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
drakahn
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500



View Profile
February 10, 2013, 02:40:33 AM
 #5

so can i make now a wallet.dat with ~46M keys?
I made one a while ago with keypool set to 100M I don't know how many it actually made but I stopped it at ~100MB of wallet.dat, it felt like it took a few extra seconds to open but seemed to work fine past that

14ga8dJ6NGpiwQkNTXg7KzwozasfaXNfEU
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
February 10, 2013, 03:48:02 AM
 #6

so can i make now a wallet.dat with ~46M keys?
I made one a while ago with keypool set to 100M I don't know how many it actually made but I stopped it at ~100MB of wallet.dat, it felt like it took a few extra seconds to open but seemed to work fine past that
is there a way to import a huge list of privkeys? pywallet dosnt work for that nor for the new wallets Sad

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
drakahn
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500



View Profile
February 10, 2013, 04:31:32 AM
 #7

so can i make now a wallet.dat with ~46M keys?
I made one a while ago with keypool set to 100M I don't know how many it actually made but I stopped it at ~100MB of wallet.dat, it felt like it took a few extra seconds to open but seemed to work fine past that
is there a way to import a huge list of privkeys? pywallet dosnt work for that nor for the new wallets Sad
You could make a script that parses the list of private keys into separate importprivkey commands

14ga8dJ6NGpiwQkNTXg7KzwozasfaXNfEU
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
February 10, 2013, 04:41:39 AM
 #8

so can i make now a wallet.dat with ~46M keys?
I made one a while ago with keypool set to 100M I don't know how many it actually made but I stopped it at ~100MB of wallet.dat, it felt like it took a few extra seconds to open but seemed to work fine past that
is there a way to import a huge list of privkeys? pywallet dosnt work for that nor for the new wallets Sad
You could make a script that parses the list of private keys into separate importprivkey commands
every import means chainrescan, maybe i should do this on a offline bitcoind, otherwise its going to take longer than im alife i guess Cheesy

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
drakahn
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500



View Profile
February 10, 2013, 04:43:59 AM
 #9

so can i make now a wallet.dat with ~46M keys?
I made one a while ago with keypool set to 100M I don't know how many it actually made but I stopped it at ~100MB of wallet.dat, it felt like it took a few extra seconds to open but seemed to work fine past that
is there a way to import a huge list of privkeys? pywallet dosnt work for that nor for the new wallets Sad
You could make a script that parses the list of private keys into separate importprivkey commands
every import means chainrescan, maybe i should do this on a offline bitcoind, otherwise its going to take longer than im alife i guess Cheesy
I did not know that, If offline doesn't work (still scanning the blocks you have), I guess you could set up a closed circuit of clients that only connect to each other and only have early blocks

14ga8dJ6NGpiwQkNTXg7KzwozasfaXNfEU
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
February 10, 2013, 04:45:43 AM
 #10

so can i make now a wallet.dat with ~46M keys?
I made one a while ago with keypool set to 100M I don't know how many it actually made but I stopped it at ~100MB of wallet.dat, it felt like it took a few extra seconds to open but seemed to work fine past that
is there a way to import a huge list of privkeys? pywallet dosnt work for that nor for the new wallets Sad
You could make a script that parses the list of private keys into separate importprivkey commands
every import means chainrescan, maybe i should do this on a offline bitcoind, otherwise its going to take longer than im alife i guess Cheesy
I did not know that, If offline doesn't work (still scanning the blocks you have), I guess you could set up a closed circuit of clients that only connect to each other and only have early blocks
nah was talking about a fresh (no blocks, beside the genesis one) and offline bitcoind, as soon everything is imported move the wallet to a online bitcoind or just let it sync.

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
c0ldfusi0nz (OP)
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
February 20, 2013, 07:40:17 PM
 #11

I'm planning on building a marketplace service, thus in order to be scalable I'd like to know how many addresses the wallet can support. Otherwise I suppose I should add in logic to reuse stagnant addresses.
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
February 20, 2013, 08:19:23 PM
 #12

I'm planning on building a marketplace service, thus in order to be scalable I'd like to know how many addresses the wallet can support. Otherwise I suppose I should add in logic to reuse stagnant addresses.

I wouldn't even worry, worst cause if your wallet gets too big (which is in 100's of millions) then you just create a new wallet.dat and sweep your funds into one address in there.
toz
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile
February 20, 2013, 11:52:36 PM
 #13

so can i make now a wallet.dat with ~46M keys?
Try it, and if it works badly, profile the code and see where it breaks. I doubt the client is optimized for millions of accounts.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
February 22, 2013, 01:26:39 AM
 #14

every import means chainrescan,

With the Bitcoin.org client v0.8, that is a configurable option so you can do multiple importprivkey with no rescan and then when you are done do the rescan.


Unichange.me

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


buffett
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
January 01, 2014, 04:48:50 PM
 #15

i'm sorry to bring this old thread back.

any update with the latest bitcoind? any significant issue when bitcoind has 100k or more accounts/addresses? thanks
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
January 01, 2014, 04:56:09 PM
 #16

i'm sorry to bring this old thread back.

any update with the latest bitcoind? any significant issue when bitcoind has 100k or more accounts/addresses? thanks

No issues, 100k addresses are nothing compare to most sites and people. So don't worry.
buffett
Newbie
*
Offline Offline

Activity: 59
Merit: 0


View Profile
January 01, 2014, 05:08:22 PM
 #17

i'm sorry to bring this old thread back.

any update with the latest bitcoind? any significant issue when bitcoind has 100k or more accounts/addresses? thanks

No issues, 100k addresses are nothing compare to most sites and people. So don't worry.

that is great. so what about 1M, 10M, 100M or even 1B addresses? has anyone did a benchmark of the performance?

there is no way i could get 100M transactions (maybe only in my dream), though i'm still curious Cheesy
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!