Renames dispute_delta to to_self_delay and justice tx to penalty tx

Uses the naming convention followed by LN implementations and BOLTs
This commit is contained in:
Sergi Delgado Segura
2019-12-11 12:45:05 +01:00
parent 6a7cd4d3aa
commit df5dcbdfe9
16 changed files with 203 additions and 194 deletions

View File

@@ -69,11 +69,11 @@ class Builder:
job = Job.from_dict(data)
jobs[uuid] = job
if job.justice_txid in tx_job_map:
tx_job_map[job.justice_txid].append(uuid)
if job.penalty_txid in tx_job_map:
tx_job_map[job.penalty_txid].append(uuid)
else:
tx_job_map[job.justice_txid] = [uuid]
tx_job_map[job.penalty_txid] = [uuid]
return jobs, tx_job_map