From b9eab6ea39e009636b08ccafc28182ec5d6d3783 Mon Sep 17 00:00:00 2001 From: chris-belcher Date: Fri, 7 May 2021 01:24:14 +0100 Subject: [PATCH] Increase max locktime of fidelity bond wallets Now that burning to OP_RETURN wont be used, if someone wants to burn coins they can just lock them up for a really long time. --- jmclient/jmclient/wallet.py | 2 +- jmclient/test/test_wallet.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jmclient/jmclient/wallet.py b/jmclient/jmclient/wallet.py index 1e2021c..1b2bec8 100644 --- a/jmclient/jmclient/wallet.py +++ b/jmclient/jmclient/wallet.py @@ -2191,7 +2191,7 @@ class FidelityBondMixin(object): TIMELOCK_EPOCH_MONTH = 1 #january MONTHS_IN_YEAR = 12 - TIMELOCK_ERA_YEARS = 30 + TIMELOCK_ERA_YEARS = 80 TIMENUMBERS_PER_PUBKEY = TIMELOCK_ERA_YEARS * MONTHS_IN_YEAR // TIMENUMBER_UNIT """ diff --git a/jmclient/test/test_wallet.py b/jmclient/test/test_wallet.py index 00d66d8..5a68269 100644 --- a/jmclient/test/test_wallet.py +++ b/jmclient/test/test_wallet.py @@ -629,7 +629,7 @@ def test_path_repr_imported(setup_wallet): [0, 1577836800], [50, 1709251200], [300, 2366841600], - [400, None], #too far in the future + [1000, None], #too far in the future [-1, None] #before epoch ]) def test_timenumber_to_timestamp(setup_wallet, timenumber, timestamp): @@ -646,7 +646,7 @@ def test_timenumber_to_timestamp(setup_wallet, timenumber, timestamp): [1709251200, 50], [2366841600, 300], [1577836801, None], #not exactly midnight on first of month - [2629670400, None], #too far in future + [4133980800, None], #too far in future [1575158400, None] #before epoch ]) def test_timestamp_to_timenumber(setup_wallet, timestamp, timenumber):