We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531b6ce commit ed7ac63Copy full SHA for ed7ac63
lite-client/query-utils.cpp
@@ -181,9 +181,9 @@ QueryInfo get_query_info(const lite_api::Function& f) {
181
[&](const lite_api::liteServer_getBlockProof& q) {
182
info.shard_id = ShardIdFull{masterchainId};
183
BlockIdExt from = create_block_id(q.known_block_);
184
- BlockIdExt to = create_block_id(q.target_block_);
185
// See LiteQuery::perform_getBlockProof
186
if ((q.mode_ & 1) && (q.mode_ & 0x1000)) {
+ BlockIdExt to = create_block_id(q.target_block_); // target_block is non-null if (mode & 1)
187
info.type = QueryInfo::t_seqno;
188
info.value = std::max(from.seqno(), to.seqno());
189
} else {
0 commit comments