ton-blockchain / ton

Main TON monorepo
Other
2.61k stars 722 forks source link

Fix lite client crashing when block lookup error #979

Open hey-researcher opened 2 months ago

hey-researcher commented 2 months ago

Here is a line: https://github.com/ton-blockchain/ton/blob/037053fffec58dedf8e72051fb695a4a42d3d9f3/tonlib/tonlib/TonlibClient.cpp#L5567C60-L5567C77

If the liteserver did not succeed in looking up the block, .ok() will perform a check and crash the app.

jamescarter-le commented 1 week ago

Any chance of getting this PR merged or someone from TON taking a look at this, as causing crashes apps consuming this library.

hey-researcher commented 1 week ago

@EmelyanenkoK could check it please