Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Crypto-t on April 22, 2014, 01:52:06 AM



Title: Running Two Wallets at the Same Time
Post by: Crypto-t on April 22, 2014, 01:52:06 AM
Thought I'd share this if others are trying to achieve it for demonstration purposes. The instructions are step-by-step and covered in more detail in the blog post.

Quote
With our next workshop planned for tomorrow, we wanted to show the attendees how to send GB Coins from one wallet to another live on the same computer (Windows), so I began experimenting to find a way to do this.

When you try to start a second instance (copy) of the same wallet you get this error: Cannot obtain a lock on data directory

And when you get past the above error, you get another error: Unable to bind (screenshot below).

After some testing we managed to get past both errors and get two working but separate wallets on-screen, with each wallet successfully sending coins to the other one

Source: http://blog.gbcoinfoundation.org/how-to-run-two-wallets-of-the-same-coin-at-the-same-time-on-the-same-computer/




Title: Re: Running Two Wallets at the Same Time
Post by: Chris_Sabian on April 25, 2014, 02:02:28 AM
Thought I'd share this if others are trying to achieve it for demonstration purposes. The instructions are step-by-step and covered in more detail in the blog post.

Quote
With our next workshop planned for tomorrow, we wanted to show the attendees how to send GB Coins from one wallet to another live on the same computer (Windows), so I began experimenting to find a way to do this.

When you try to start a second instance (copy) of the same wallet you get this error: Cannot obtain a lock on data directory

And when you get past the above error, you get another error: Unable to bind (screenshot below).

After some testing we managed to get past both errors and get two working but separate wallets on-screen, with each wallet successfully sending coins to the other one

Source: http://blog.gbcoinfoundation.org/how-to-run-two-wallets-of-the-same-coin-at-the-same-time-on-the-same-computer/




But why would you want to?


Title: Re: Running Two Wallets at the Same Time
Post by: Cryptogirl82 on April 25, 2014, 11:53:47 AM
I run about 5 wallets at the same time and have had no problems so far.


Title: Re: Running Two Wallets at the Same Time
Post by: sclaggett on April 25, 2014, 12:16:00 PM
I have the same question as to what is the specific use case here for this application.  :-\


Title: Re: Running Two Wallets at the Same Time
Post by: Yuki1988 on April 25, 2014, 02:51:03 PM
But why would you want to?

Maybe he has a personal wallet and a wallet for his business. Or maybe he has two separate businesses.


Title: Re: Running Two Wallets at the Same Time
Post by: hashman on April 25, 2014, 05:13:35 PM
Thought I'd share this if others are trying to achieve it for demonstration purposes.




Title: Re: Running Two Wallets at the Same Time
Post by: bitkanu on April 25, 2014, 06:30:01 PM
i think using of 2 wallet is wasting if you can store your  all money in single account :) but one thing i want clear you guys if you want to make multiple accounts and distribute all money into those account your money is much safer form hackers


Title: Re: Running Two Wallets at the Same Time
Post by: gagalady on April 26, 2014, 02:22:02 PM
Two wallets or more are for different purpose let'sa say one for your business where you get alot of transactions and other one for personal use.Or just to separate your coin stack so It's safer and less attracting for hackers .


Title: Re: Running Two Wallets at the Same Time
Post by: digitalninja81 on April 26, 2014, 03:37:14 PM
Thanks for this info, but in my case one wallet is pretty much


Title: Re: Running Two Wallets at the Same Time
Post by: DocJeff on April 26, 2014, 03:51:41 PM
Good info, but if your'e doing this for security that's a reallly bad idea.

Wallets stored locally on the same box may have different credentials, but realistically if one is compromised it's probably not because somebody figured out your RPC info (though it is possible.) Anyway, the point is the only reason I could think of doing this outside of security would be to give each person using a computer their own wallet, at which point honestly you should just use the "account" field


Title: Re: Running Two Wallets at the Same Time
Post by: etotheipi on April 27, 2014, 04:58:54 AM
Armory has a multi-wallet interface precisely because it does support different security models.   Many users keep different wallets also for general organizational reasons, and I've heard that the bitcoind "accounts" are very ... awkward.

We spent a lot of time making the interface natively support multiple wallets, because having a single wallet doesn't meet the needs of most users -- you need to be able to manage "spending cash" (hot) and "savings" (cold) simultaneously, you can't just keep all your money in one or the other (you can, but it's not ideal).  Also, we use watching-only wallets to track employees payments.  For instance, here's why we hold multiple wallets:

  • A hot wallet for day-to-day spending
  • A watch-only wallet for an offline/cold laptop in the office
  • A watch-only wallet for an offline/cold laptop in a safe-deposit box at a bank
  • N watch-only wallets for each N employees, so we can pay them without requesting or reusing addresses.  Armory also has an export function to save the transaction history for each wallet to a CSV file for book-keeping.

The last one isn't limited to companies.  You and your friends can exchange watching-only wallets, and use them to pay each other.  It's automatic book-keeping, easy backup, and never re-uses addresses.

Trying to deal with multiple wallets in any other app is kind of a pain, and not all that useful unless you're using significantly different security profiles for each one.  I agree that if the private keys for multiple wallets are on the same hard-drive, they have essentially the same security profile (assuming they're both encrypted).




Title: Re: Running Two Wallets at the Same Time
Post by: wumpus on April 27, 2014, 07:17:47 AM
Trying to deal with multiple wallets in any other app is kind of a pain, and not all that useful unless you're using significantly different security profiles for each one.  I agree that if the private keys for multiple wallets are on the same hard-drive, they have essentially the same security profile (assuming they're both encrypted).
Does armory support a RPC mechanism? Can it run headless?

Quite regularly I get requests for a server-side wallet solution that supports multiple wallets, and I have no idea which of the many wallet solutions works there.


Title: Re: Running Two Wallets at the Same Time
Post by: etotheipi on April 27, 2014, 02:38:51 PM
Trying to deal with multiple wallets in any other app is kind of a pain, and not all that useful unless you're using significantly different security profiles for each one.  I agree that if the private keys for multiple wallets are on the same hard-drive, they have essentially the same security profile (assuming they're both encrypted).
Does armory support a RPC mechanism? Can it run headless?

Quite regularly I get requests for a server-side wallet solution that supports multiple wallets, and I have no idea which of the many wallet solutions works there.

armoryd.py is still somewhat minimal.  We followed bitcoin core's RPC interface as much as possible, which is a one-wallet interface, and we just haven't had time to update it to handle multiple wallets.  It actually would be quite easy -- just register mulitple wallets at startup instead of one, and then add some RPC commands to switch the "active" wallet.  In fact, I think some people using armoryd have essentially modified it in this way.  It's just not officially supported yet.





Title: Re: Running Two Wallets at the Same Time
Post by: elavenil on April 28, 2014, 02:41:55 AM
What is wrong with having one wallet and multiple address?