Bitcoin Forum
September 27, 2018, 10:05:02 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Single bitcoind instance and multiple wallets, is it possible ?  (Read 769 times)
Farghaly
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
April 04, 2014, 05:36:07 PM
 #1

Is it possible to interact with multiple wallets using a single bitcoind instance ?
i know that the wallet on which bitcoind operate can be changed using -datadir option, but this is per bitcoind instance. is it possible to make somethig like this ? assuming there are multiple wallets

Code:
getnewaddress <account:Foo> <wallet:wallet1.dat>
listunspent <wallet:wallet5.dat>
keypoolrefill 100 <wallet:wallet7.dat>



1538085902
Hero Member
*
Offline Offline

Posts: 1538085902

View Profile Personal Message (Offline)

Ignore
1538085902
Reply with quote  #2

1538085902
Report to moderator
1538085902
Hero Member
*
Offline Offline

Posts: 1538085902

View Profile Personal Message (Offline)

Ignore
1538085902
Reply with quote  #2

1538085902
Report to moderator
1538085902
Hero Member
*
Offline Offline

Posts: 1538085902

View Profile Personal Message (Offline)

Ignore
1538085902
Reply with quote  #2

1538085902
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Wolf0
Hero Member
*****
Offline Offline

Activity: 798
Merit: 1002


Miner Developer


View Profile
April 06, 2014, 08:54:19 AM
 #2

Is it possible to interact with multiple wallets using a single bitcoind instance ?
i know that the wallet on which bitcoind operate can be changed using -datadir option, but this is per bitcoind instance. is it possible to make somethig like this ? assuming there are multiple wallets

Code:
getnewaddress <account:Foo> <wallet:wallet1.dat>
listunspent <wallet:wallet5.dat>
keypoolrefill 100 <wallet:wallet7.dat>





I believe this is what accounts are for.

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
behindtext
Full Member
***
Offline Offline

Activity: 121
Merit: 100


View Profile WWW
April 06, 2014, 01:14:49 PM
 #3

not sure it works for your application, but you should have a look at btcd and btcwallet: they were built to accommodate just this scenario.

https://github.com/conformal/btcd
https://github.com/conformal/btcwallet

iirc bitcoind's account feature is deprecated and does not work how one would hope or expect.

jedunnigan
Sr. Member
****
Offline Offline

Activity: 279
Merit: 250


View Profile
April 06, 2014, 04:48:59 PM
 #4

You should read through this thread to get some insights on how to do it: http://thread.gmane.org/gmane.comp.bitcoin.devel/4009

Quote
Multiple wallets, used serially, works fine today.  I manage multiple wallets using symlink replacement.

gwlloyd
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
April 06, 2014, 05:42:41 PM
 #5

I just use the account functionality to separate, but symlinks would work too (as mentioned above) and are also easy to set-up. Or perhaps look into using something like sx tools to perform the transactions through bitcoind rather than bitcoind itself.
jedunnigan
Sr. Member
****
Offline Offline

Activity: 279
Merit: 250


View Profile
April 06, 2014, 05:52:22 PM
 #6

I just use the account functionality to separate, but symlinks would work too (as mentioned above) and are also easy to set-up. Or perhaps look into using something like sx tools to perform the transactions through bitcoind rather than bitcoind itself.

There are a few reasons not use accounts, but mainly this one:

Quote
The accounts code does not scale up to thousands of accounts with tens of thousands of transactions, because by-account (and by-account-by-time) indices are not implemented. So many operations (like computing an account balance) require accessing every wallet transaction.

https://en.bitcoin.it/wiki/Accounts_explained#Account_Weaknesses

Personally I don't think libbitcoin/obelisk/sx is production ready, but I respect the work genjix is doing.
Wolf0
Hero Member
*****
Offline Offline

Activity: 798
Merit: 1002


Miner Developer


View Profile
April 07, 2014, 03:21:15 PM
 #7

I just use the account functionality to separate, but symlinks would work too (as mentioned above) and are also easy to set-up. Or perhaps look into using something like sx tools to perform the transactions through bitcoind rather than bitcoind itself.

There are a few reasons not use accounts, but mainly this one:

Quote
The accounts code does not scale up to thousands of accounts with tens of thousands of transactions, because by-account (and by-account-by-time) indices are not implemented. So many operations (like computing an account balance) require accessing every wallet transaction.

https://en.bitcoin.it/wiki/Accounts_explained#Account_Weaknesses

Personally I don't think libbitcoin/obelisk/sx is production ready, but I respect the work genjix is doing.


I use the sx tools and run an Obelisk server, it's pretty robust. Love it.

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!