Browse Source

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.
master
chris-belcher 5 years ago
parent
commit
b9eab6ea39
No known key found for this signature in database
GPG Key ID: EF734EA677F31129
  1. 2
      jmclient/jmclient/wallet.py
  2. 4
      jmclient/test/test_wallet.py

2
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
"""

4
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):

Loading…
Cancel
Save