Use protocol constant

This commit is contained in:
Michał Sałaban 2018-02-05 23:38:45 +01:00
parent e493ddb9dd
commit 9a6bc49a28
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ class JSONRPCWallet(object):
params['max_height'] = pmtfilter.max_height
params['filter_by_height'] = True
# PR#3235 makes the following obsolete
params['max_height'] = params.get('max_height', 2**64-1)
# CRYPTONOTE_MAX_BLOCK_NUMBER = 500000000
params['max_height'] = params.get('max_height', 500000000)
else:
arg = 'payments'
# NOTE: the API uses (min, max] range which is confusing