Commit 58dcbbb7 authored by Moul's avatar Moul

[mod] #145: change to new parameter

- fix comment: ĞTest’s WoT is going five time faster
parent d4595ad6
......@@ -60,11 +60,9 @@ async def send_certification(id_to_certify):
for cert in req["certifications"]:
if cert["from"] == issuer_pubkey:
params = await BlockchainParams().params
# Change params["msWindow"] to params["sigReplay"] when deployed
# https://git.duniter.org/nodes/typescript/duniter/merge_requests/1270
# Ğ1: 0<–>2y - 2y + 2m
# ĞT: 0<–>6m - 6m + ¼m
renewable = cert["expiresIn"] - params["sigValidity"] + params["msWindow"]
# ĞT: 0<–>4.8m - 4.8m + 12.5d
renewable = cert["expiresIn"] - params["sigValidity"] + params["sigReplay"]
if renewable > 0:
renewable_date = convert_time(time() + renewable, "date")
message_exit("Certification renewable the " + renewable_date)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment