Open jp1ac4 opened 3 weeks ago
Our approach may depend on the outcome of https://github.com/bitcoin/bitcoin/issues/31133.
See also ba553e9ddb104af454d9eff9969c0e37a1f3061a.
On a related note and possibly as part of this fix, the ports used by managed bitcoind could be chosen at runtime. We currently pick some available ports randomly when first installing bitcoind and save these in bitcoin.conf, but these ports might not be available the next time Liana is opened. These newly chosen values could either be passed as command-line arguments or saved to the config file in order to facilitate the use of bitcoin-cli.
Of course any ports used in the daemon config file should be fixed still :)
It seems that bitcoind 28.0 may error if there are other instances running on the same machine and bitcoin network due to a port collision. Now that Liana's managed bitcoind has been upgraded to 28.0, we should set the
bind
parameter (to be confirmed) to a random port to avoid this collision.User impact is likely to be low given that a user selecting to use managed bitcoind is not expected to be running multiple instances. A short-term workaround would be to either stop other bitcoind instances or edit the managed bitcoind config to specifiy this additional parameter.