From 34944a0daf4d6ce74c60654b4a43d7010a316c72 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Fri, 10 Apr 2020 14:26:36 +0300 Subject: [PATCH] Move commitmentlist to datadir --- jmdaemon/jmdaemon/daemon_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmdaemon/jmdaemon/daemon_protocol.py b/jmdaemon/jmdaemon/daemon_protocol.py index 0e502db..037788d 100644 --- a/jmdaemon/jmdaemon/daemon_protocol.py +++ b/jmdaemon/jmdaemon/daemon_protocol.py @@ -66,7 +66,7 @@ def check_utxo_blacklist(commitment, persist=False): If flagged, persist the usage of this commitment to the above file. """ #TODO format error checking? - fname = "commitmentlist" + fname = os.path.join(jm_single().datadir, "commitmentlist") if os.path.isfile(fname): with open(fname, "rb") as f: blacklisted_commitments = [x.decode('ascii').strip() for x in f.readlines()]