Tranz (OP)
Legendary
Offline
Activity: 1540
Merit: 1060
May the force bit with you.
|
 |
December 01, 2013, 01:48:26 AM |
|
Here is a quick tutorial on Multiple Wallets.
GUI Interface: The GUI now includes a wallet stack on the right hand side. These will be all wallets that are currently loaded and in memory. Simply clicking on any of the wallets will change the left side of the gui to show that wallets information.
To create a new wallet click on the new button and navigate to the directory you want to create the wallet in. Then type wallet-walletname.dat. For example wallet-stake.dat, will show up in the gui as stake. All wallets must be preceded by wallet- and end in .dat. Any other names will create an error.
To load an existing wallet click the load button, navigate to the directory you want and open that wallet. If the wallet is encrypted and you would like it to be able to run stake, then you will need to use the rpc command walletpassphrase. This can be done by click on the debug window, then going to the console tab then enter the following command usewallet walletname walletpassphrase timetounlock. The walletname is what you see in the wallet stack in the gui, or when using the listwallets rpc command. Trying to load a file not named wallet-something.dat will cause an error, as well as trying to load the same wallet that is already loaded. No harm will come, but it won't load.
To remove a wallet from memory, highlight the wallet want to remove the click the unload button. The wallet will be flushed from memory and removed from the gui. If you loaded a wallet from a USB, it is a good idea to both wait 10-30 seconds and use the safely remove media button in windows, before you remove the USB.
RPC Methods: -listwallets -Shows all loaded wallet information
-usewallet <wallet> <method> [params] -Use wallet commands on different wallets -Example: usewallet HoboOfflineWallet1 sendtoaddress F4ATvAfwcE5RFn358FS1bxauwoB7Ces7KN 100
-loadwallet <walletname> [rescan=false] [upgradewallet=false] [maxversion=(latest)] -Loads a wallet found in the %appdata% directory. If no wallet by the name is found, one is created.
-unloadwallet <walletname> -Unloads a wallet.
Config and Command line arguments: - You may use the config line usewallets=walletname or the command line -usewallet=walletname - This will load only the wallets you specify. If you do not use either of these, than all wallets in the %appdata% dir named wallet-*.dat will be loaded. If you specify usewallet="" than only the default wallet will be loaded. - You may also prevent a certain wallet from loading at start up by using the argument -nousewallet
Staking: - At time of start up all wallets listed in usewallets or all found in %appdata% will each get a thread to start stake. This should help with CPU exhaustion. - If you specify usewallet="" than only the default wallet will be loaded and up for stake. - All wallets specified by -nousewallet will not be up for stake.
|