mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated tonlib, fixed bugs
updated tonlib fixed bugs in func validator: partial support for hardforks liteserver: support for waitMasterchainBlock prefix transactions: support for gas flat rate
This commit is contained in:
parent
841d5ebac2
commit
7ea00ebfcf
89 changed files with 1922 additions and 608 deletions
|
@ -745,6 +745,26 @@ Ref<Cell> CellSlice::fetch_ref() {
|
|||
}
|
||||
}
|
||||
|
||||
bool CellSlice::prefetch_maybe_ref(Ref<vm::Cell>& res) const {
|
||||
auto z = prefetch_ulong(1);
|
||||
if (!z) {
|
||||
res.clear();
|
||||
return true;
|
||||
} else {
|
||||
return z == 1 && prefetch_ref_to(res);
|
||||
}
|
||||
}
|
||||
|
||||
bool CellSlice::fetch_maybe_ref(Ref<vm::Cell>& res) {
|
||||
auto z = prefetch_ulong(1);
|
||||
if (!z) {
|
||||
res.clear();
|
||||
return advance(1);
|
||||
} else {
|
||||
return z == 1 && prefetch_ref_to(res) && advance_ext(1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
bool CellSlice::begins_with(unsigned bits, unsigned long long value) const {
|
||||
return have(bits) && !((prefetch_ulong(bits) ^ value) & ((1ULL << bits) - 1));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue