fix: Update to use new listhistory rpc call
All checks were successful
Build Docker / Build Image (push) Successful in 1m20s

This commit is contained in:
Nathan Woodburn 2024-12-10 13:25:37 +11:00
parent 6b3791f0a2
commit 75e2523007
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 2 additions and 3 deletions

View File

@ -145,7 +145,6 @@ def getCookie(cookie):
else: else:
return False return False
def hashPassword(password): def hashPassword(password):
# Hash a password # Hash a password
return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8') return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')

View File

@ -60,8 +60,8 @@ def check_payments():
return False return False
# Get last 20 transactions # Get last 20 transactions
data = { data = {
"method": "listtransactions", "method": "listhistory",
"params": ["default", 20] "params": ["default"]
} }
resp = requests.post(url, json=data) resp = requests.post(url, json=data)