Remove litecoind.pid workaround.

2024-05-20_merge
tecnovert 8 months ago
parent a08bdfbdb8
commit 8d8743074e
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93
  1. 7
      basicswap/basicswap.py

@ -708,13 +708,6 @@ class BasicSwap(BaseApp):
# Older core versions don't write a pid file on windows
pass
else:
# Workaround for mismatched pid file name in litecoin 0.21.2
# Also set with pid= in .conf
# TODO: Remove
if cc['name'] == 'litecoin' and (not os.path.exists(pidfilepath)) and \
os.path.exists(os.path.join(self.getChainDatadirPath(coin), 'bitcoind.pid')):
pidfilepath = os.path.join(self.getChainDatadirPath(coin), 'bitcoind.pid')
with open(pidfilepath, 'rb') as fp:
datadir_pid = int(fp.read().decode('utf-8'))
assert (datadir_pid == cc['pid']), 'Mismatched pid'

Loading…
Cancel
Save