1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

updated block header

1. Updated block header, proofs now contain more data
   Notice, that old proofs may become invalid in the future
2. Fixed message routing
3. Fixed block creator id in block header
4. Support for full proofs in tonlib
5. Support for partial state download
6. Some other bugfixes
This commit is contained in:
ton 2019-09-18 21:46:32 +04:00
parent bce33f588a
commit 13140ddf29
73 changed files with 2084 additions and 304 deletions

View file

@ -128,6 +128,9 @@ struct BitPtrGen {
std::size_t scan(bool value, std::size_t len) const {
return bitstring::bits_memscan(*this, len, value);
}
bool is_zero(std::size_t len) const {
return scan(false, len) == len;
}
long long get_int(unsigned bits) const {
return bitstring::bits_load_long(*this, bits);
}
@ -279,7 +282,7 @@ class BitSliceGen {
ensure_throw(set_size_bool(bits));
return *this;
}
BitSliceGen subslice(unsigned from, unsigned bits) const & {
BitSliceGen subslice(unsigned from, unsigned bits) const& {
return BitSliceGen(*this, from, bits);
}
BitSliceGen subslice(unsigned from, unsigned bits) && {
@ -467,7 +470,7 @@ class BitArray {
unsigned char* data() {
return bytes.data();
}
unsigned size() const {
static unsigned size() {
return n;
}
const byte_array_t& as_array() const {