toncenter / pytonlib

Python SDK for TON via tonlib
GNU General Public License v3.0
80 stars 21 forks source link

Fix: Handle 500 Error on Retrieving Transactions with Expired LT #58

Closed fmpojsz closed 3 weeks ago

fmpojsz commented 7 months ago

Issue

Currently, the getTransactions returns 500 error when attempting to retrieve a transaction with an expired LT

{
  "ok": false,
  "error": "LITE_SERVER_UNKNOWN: cannot locate transaction in block with specified logical time",
  "code": 500
}

Proposed Solution

Prior to fetching transactions using LT, implement a check to ensure that the LT is less than toLt