Bitcoin Forum
May 04, 2024, 10:07:14 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Better implementation of a way to run multiple instances of bitcoin-qt  (Read 965 times)
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
July 15, 2017, 02:13:27 AM
 #1

Hello,

I learned it is possible to run a single bitcoin-qt dir with the -wallet option to run multiple wallets with the same block-data.

However, each time running another version it needs reindexing because the datadir contains only the different wallets but all other files are the same files for every wallet.dat.

So it would be more efficient to have a flag that allows to use a datadir for every wallet you have. And a flag to only search for the blockchain in a normal shared directory. That way every installation could have his own settings and rescan wouldn't be needed anymore. However only one wallet could access the blockchain at the same time.

In any case it would be a helpful thing.

Greetings!
Sebastian

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
1714860434
Hero Member
*
Offline Offline

Posts: 1714860434

View Profile Personal Message (Offline)

Ignore
1714860434
Reply with quote  #2

1714860434
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
July 15, 2017, 03:23:48 AM
 #2

Why are you reindexing after changing wallets? There is no need to reindex as reindexing has nothing to do with wallets.

Anyways, 0.15 will be introducing multiwallet (for at least RPC I think) so you can use that once it is released.

SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
July 17, 2017, 02:38:35 AM
 #3

Why are you reindexing after changing wallets? There is no need to reindex as reindexing has nothing to do with wallets.

Anyways, 0.15 will be introducing multiwallet (for at least RPC I think) so you can use that once it is released.

I do not reindex. bitcoin-qt is doing it on it's own.

I have one main qt installation with the full blockchain now. And a couple of other wallet.dat files. The other wallets are started via a shortcut with -datadir and -wallet. Though that means each wallet shares each of the other .dat files in the data-dir. Which leads to reindexing each time one of the other wallets is started.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 19, 2017, 03:20:00 AM
 #4

Are you actually running multiple instances of bitcoin-qt at the same time? or are you just starting up the client with "wallet1"... making transactions... shutting down... starting up client with "wallet2"... making transactions... shutting down... starting up client with "wallet3" etc??

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
SebastianJu (OP)
Legendary
*
Offline Offline

Activity: 2674
Merit: 1082


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
July 20, 2017, 02:40:42 AM
 #5

Are you actually running multiple instances of bitcoin-qt at the same time? or are you just starting up the client with "wallet1"... making transactions... shutting down... starting up client with "wallet2"... making transactions... shutting down... starting up client with "wallet3" etc??


Not at the same time. But it might be that I claimed too fast that a full rescan is done every time. On first try of this setup the master synced fully. Then one of the other wallet was started and it took a half hour of rescan. The other wallets took a bit less afterwards. Now each time I start a wallet it takes few time only so I think the problem is not really existing and I wrote too fast.

It looks like this setup works relatively fast. Multiple instances at once is not really needed for me. One at a time is sufficient.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 20, 2017, 11:49:01 AM
Merited by ABCbits (1)
 #6

 multiple instances  at the same time would likely cause locking issues with the block data... I doubt you could have multiple instances running off the same datadir at the same time without causing issues and possible data corruption

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
amaclin1
Sr. Member
****
Offline Offline

Activity: 770
Merit: 305


View Profile
July 20, 2017, 01:18:30 PM
 #7

However, each time running another version it needs reindexing because the datadir
contains only the different wallets but all other files are the same files for every wallet.dat.
AFAIK, the client does not reindexing the blockchain.
It searches in already downloaded blocks transactions related to the current wallet.dat

multiple instances  at the same time would likely cause locking issues with the block data...
...only if programmers are dumb

there is no significant problems to handle several wallet.dat databases for one blockchain
of course, it is difficult to rewrite current ass-written code.
and i do not see big reasons to do it

Bitcoin SV GUI client for Windows and Linux
https://github.com/AlisterMaclin/bitcoin-sv/releases
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!