From 75e2523007bdfd57821ca440001159e5fe8a2dcc Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Tue, 10 Dec 2024 13:25:37 +1100 Subject: [PATCH] fix: Update to use new listhistory rpc call --- accounts.py | 1 - payments.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/accounts.py b/accounts.py index 4593021..90cbb77 100644 --- a/accounts.py +++ b/accounts.py @@ -145,7 +145,6 @@ def getCookie(cookie): else: return False - def hashPassword(password): # Hash a password return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8') diff --git a/payments.py b/payments.py index c8c9510..93a0137 100644 --- a/payments.py +++ b/payments.py @@ -60,8 +60,8 @@ def check_payments(): return False # Get last 20 transactions data = { - "method": "listtransactions", - "params": ["default", 20] + "method": "listhistory", + "params": ["default"] } resp = requests.post(url, json=data)