Browse Source

Merge #554: Bugfix: Move commitmentlist to datadir

34944a0 Move commitmentlist to datadir (Kristaps Kaupe)
master
Adam Gibson 6 years ago
parent
commit
a5a7090cef
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 2
      jmdaemon/jmdaemon/daemon_protocol.py

2
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()]

Loading…
Cancel
Save