Bitcoin Forum
May 06, 2024, 11:39:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Single bitcoind instance and multiple wallets, is it possible ?  (Read 843 times)
Farghaly (OP)
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>



1714995581
Hero Member
*
Offline Offline

Posts: 1714995581

View Profile Personal Message (Offline)

Ignore
1714995581
Reply with quote  #2

1714995581
Report to moderator
1714995581
Hero Member
*
Offline Offline

Posts: 1714995581

View Profile Personal Message (Offline)

Ignore
1714995581
Reply with quote  #2

1714995581
Report to moderator
1714995581
Hero Member
*
Offline Offline

Posts: 1714995581

View Profile Personal Message (Offline)

Ignore
1714995581
Reply with quote  #2

1714995581
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714995581
Hero Member
*
Offline Offline

Posts: 1714995581

View Profile Personal Message (Offline)

Ignore
1714995581
Reply with quote  #2

1714995581
Report to moderator
behindtext
Full Member
***
Offline Offline

Activity: 121
Merit: 103


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

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
 #3

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
 #4

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
 #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.

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.
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!