mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-18 16:44:34 +00:00
Remove litecoind.pid workaround.
This commit is contained in:
parent
a08bdfbdb8
commit
8d8743074e
1 changed files with 0 additions and 7 deletions
|
@ -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…
Reference in a new issue