I am in the same situation, it seems that the server does not store the complete block data.
In addition, there is related error handling in tongo@1.4.1/liteap/client.go 648 line, but I didn’t understand it. The approximate code is as follows:
txs, err := c.GetTransactions(ctx, uint32(transactionCount), a, lastLt, ton.Bits256(lastHash))
if err != nil {
if e, ok := err.(liteclient.LiteServerErrorC); ok && int32(e.Code) == -400 { // liteserver can store not full history. in that case it return error -400 for old transactions
break
}
return nil, err
}
Answered
LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: lt not in db
Hi I'm just trying to get transactions for the address and getting this error from time to time (few times I got successfull response)
request:
curl -X 'GET' 'https://toncenter.com/api/v2/getTransactions?address=EQBnvfmXYL_z7n4WriIEVrBNKVQBolTD5bx-syCe5B5EtqOy' -H 'accept: application/json'
error:
{"ok":false,"error":"LITE_SERVER_UNKNOWN: cannot compute block with specified transaction: lt not in db","code":500}
- Why I'm getting this error periodically?
- Do I need in my own Lite node to avoid this error? What is the reason to use own Lite node?
Thanks.
14K Views
2
Answers
one year ago
8 months ago
Tags