Remove litecoind.pid workaround.
This commit is contained in:
parent
a08bdfbdb8
commit
8d8743074e
@ -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 New Issue
Block a user