mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix DNS resolve in liteclient and tonlib
This commit is contained in:
parent
d6e365c21f
commit
b44e5403c8
3 changed files with 9 additions and 4 deletions
|
@ -1812,10 +1812,11 @@ void TestNode::dns_resolve_finish(ton::WorkchainId workchain, ton::StdSmcAddress
|
|||
if (!dict.check_for_each([this, &out](Ref<vm::CellSlice> cs, td::ConstBitPtr key, int n) {
|
||||
CHECK(n == 256);
|
||||
td::Bits256 x{key};
|
||||
/*if (cs.is_null() || cs->size_ext() != 0x10000) {
|
||||
if (cs.is_null() || cs->size_ext() != 0x10000) {
|
||||
out << "category " << x << " : value is not a reference" << std::endl;
|
||||
return true;
|
||||
}*/
|
||||
}
|
||||
cs = vm::load_cell_slice_ref(cs->prefetch_ref());
|
||||
std::ostringstream os;
|
||||
(void)show_dns_record(os, x, cs, true);
|
||||
out << "category " << x << " : " << os.str() << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue