diff --git a/pytonlib/client.py b/pytonlib/client.py index ef0fec8..8c5ed31 100644 --- a/pytonlib/client.py +++ b/pytonlib/client.py @@ -671,12 +671,15 @@ async def try_locate_tx_by_incoming_message(self, source, destination, creation_ for shard_data in shards['shards']: shardchain = shard_data['shard'] - for b in range(3): - block = await self.lookup_block(workchain, shardchain, lt=int(creation_lt) + b * 1000000) + # Look for message in few subsequent blocks. + blocks_lt_distance = 1000000 + creation_lt_rounded = int(int(creation_lt) / blocks_lt_distance * blocks_lt_distance) + for b in range(10): + block = await self.lookup_block(workchain, shardchain, lt=creation_lt_rounded + b * blocks_lt_distance) txs = await self.get_block_transactions(workchain, shardchain, block["seqno"], - count=40, + count=500, root_hash=block["root_hash"], file_hash=block["file_hash"]) candidate = tuple() @@ -714,7 +717,7 @@ async def try_locate_tx_by_outcoming_message(self, source, destination, creation txses = await self.get_block_transactions(workchain, shardchain, block["seqno"], - count=40, + count=500, root_hash=block["root_hash"], file_hash=block["file_hash"]) candidate = tuple()