Tuesday, October 1, 2024

Is it attainable to run Bitcoin Core (GUI) similtaneously bitcoind?

I am in a really irritating scenario. I used to run Bitcoin Core on Home windows, with out these issues, however ever since I switched to Linux (XFCE), and I after all have Bitcoin Core (GUI) beginning robotically, I am interrupted after like 5 minutes whereas typing/working by an indescribably annoying GUI field saying “Loading wallets…”. That is regardless of operating it with -min to start out minimized and never trouble me. Nevertheless it does anyway.

This has grow to be so annoying that I have been pressured to take away Bitcoin Core from beginning robotically. As a substitute, I’ll open it solely once I actively have to do a Bitcoin switch. However then a brand new downside arises: the blockchain can be many months outdated once I lastly open it up, after which it has to sit down round for a very long time and sync the blockchain earlier than I can do something with it. Additionally, I can not use its RPC API if nothing is operating.

So as an alternative I am now beginning bitcoind at boot, so that it’ll run within the background and not using a GUI and preserve the blockchain updated.

However now, there is a new downside: if I begin Bitcoin Core (GUI) whereas bitcoind is operating within the background, I get an error saying that it could’t get hold of a lock of the blocks dir or one thing alongside these strains. Clearly, it’s because bitcoind is already engaged on the block dir.

I can “resolve” this by first operating a script which calls the RPC API with the “cease” command, in order that bitcoind shuts down safely (killing the method will not be secure). Then I can open Bitcoin Core (GUI) and begin utilizing it.

However, as you may think about, that is something however an excellent scenario. I now should each bear in mind to not simply begin the Bitcoin Core (GUI) program once I want it, but additionally to first dig up and run that script to first shut down bitcoind. After which, after I am executed in Bitcoin Core (GUI), I have to shut it down and once more begin bitcoind to return to the identical state as earlier than. It simply makes my pores and skin crawl.

Is there some hidden possibility I can ship when opening Bitcoin Core (GUI) in order that as an alternative of attempting to run its personal stuff, it simply “hooks into” the prevailing bitcoind?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles