Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit 0f9b25d

Browse files
tontolya-yanot
ton
authored andcommitted
validator large state serialization bugfix + tdlib update for clients
1 parent b36118d commit 0f9b25d

File tree

10 files changed

+119
-23
lines changed

10 files changed

+119
-23
lines changed

Diff for: adnl/adnl-received-mask.h

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
This file is part of TON Blockchain Library.
3+
4+
TON Blockchain Library is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU Lesser General Public License as published by
6+
the Free Software Foundation, either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
TON Blockchain Library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public License
15+
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
16+
17+
Copyright 2017-2020 Telegram Systems LLP
18+
*/
119
#pragma once
220

321
#include "td/utils/int_types.h"

Diff for: adnl/adnl-tunnel.cpp

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
This file is part of TON Blockchain Library.
3+
4+
TON Blockchain Library is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU Lesser General Public License as published by
6+
the Free Software Foundation, either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
TON Blockchain Library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public License
15+
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
16+
17+
Copyright 2017-2020 Telegram Systems LLP
18+
*/
119
#include "adnl-tunnel.h"
220
#include "adnl-peer-table.h"
321

Diff for: adnl/adnl-tunnel.h

+10-19
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
/*
2-
This file is part of TON Blockchain source code.
2+
This file is part of TON Blockchain Library.
33
4-
TON Blockchain is free software; you can redistribute it and/or
5-
modify it under the terms of the GNU General Public License
6-
as published by the Free Software Foundation; either version 2
7-
of the License, or (at your option) any later version.
4+
TON Blockchain Library is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU Lesser General Public License as published by
6+
the Free Software Foundation, either version 2 of the License, or
7+
(at your option) any later version.
88
9-
TON Blockchain is distributed in the hope that it will be useful,
9+
TON Blockchain Library is distributed in the hope that it will be useful,
1010
but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
GNU General Public License for more details.
13-
14-
You should have received a copy of the GNU General Public License
15-
along with TON Blockchain. If not, see <http://www.gnu.org/licenses/>.
16-
17-
In addition, as a special exception, the copyright holders give permission
18-
to link the code of portions of this program with the OpenSSL library.
19-
You must obey the GNU General Public License in all respects for all
20-
of the code used other than OpenSSL. If you modify file(s) with this
21-
exception, you may extend this exception to your version of the file(s),
22-
but you are not obligated to do so. If you do not wish to do so, delete this
23-
exception statement from your version. If you delete this exception statement
24-
from all source files in the program, then also delete it here.
12+
GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public License
15+
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
2516
2617
Copyright 2017-2020 Telegram Systems LLP
2718
*/

Diff for: crypto/test/wycheproof.h

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
This file is part of TON Blockchain Library.
3+
4+
TON Blockchain Library is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU Lesser General Public License as published by
6+
the Free Software Foundation, either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
TON Blockchain Library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public License
15+
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
16+
17+
Copyright 2017-2020 Telegram Systems LLP
18+
*/
119
#pragma once
220

321
#include <string>

Diff for: crypto/vm/boc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ td::uint64 BagOfCells::compute_sizes(int mode, int& r_size, int& o_size) {
375375
r_size = o_size = 0;
376376
return 0;
377377
}
378-
while (cell_count >= (1 << (rs << 3))) {
378+
while (cell_count >= (1LL << (rs << 3))) {
379379
rs++;
380380
}
381381
td::uint64 hashes =

Diff for: tddb/test/binlog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ struct LogEventString {
270270
return -static_cast<int64>(need_size);
271271
}
272272
dest.truncate(need_size);
273-
td::as<unsigned>(dest.data()) = tag;
273+
td::as<unsigned>(dest.data()) = unsigned(tag);
274274
td::as<int>(dest.data() + 4) = td::narrow_cast<int>(data.size());
275275
dest.substr(8).copy_from(data);
276276
return dest.size();

Diff for: tdutils/td/utils/as.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class As {
4040
}
4141
~As() = default;
4242

43-
As &operator=(T new_value) && {
43+
As &operator=(const T &new_value) && {
4444
std::memcpy(ptr_, &new_value, sizeof(T));
4545
return *this;
4646
}

Diff for: tdutils/td/utils/port/uname.cpp

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
This file is part of TON Blockchain Library.
3+
4+
TON Blockchain Library is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU Lesser General Public License as published by
6+
the Free Software Foundation, either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
TON Blockchain Library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public License
15+
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
16+
17+
Copyright 2017-2020 Telegram Systems LLP
18+
*/
119
#include "td/utils/port/uname.h"
220

321
#include "td/utils/port/config.h"

Diff for: tdutils/td/utils/port/uname.h

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
This file is part of TON Blockchain Library.
3+
4+
TON Blockchain Library is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU Lesser General Public License as published by
6+
the Free Software Foundation, either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
TON Blockchain Library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public License
15+
along with TON Blockchain Library. If not, see <http://www.gnu.org/licenses/>.
16+
17+
Copyright 2017-2020 Telegram Systems LLP
18+
*/
119
#pragma once
220

321
#include "td/utils/Slice.h"

Diff for: tonlib/tonlib/TonlibClient.cpp

+16-1
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,22 @@ const MasterConfig& get_default_master_config() {
19281928
"root_hash": "F6OpKZKqvqeFp6CQmFomXNMfMj2EnaUSOXN+Mh+wVWk=",
19291929
"file_hash": "XplPz01CXAps5qeSWUtxcyBfdAo5zVb1N979KLSKD24="
19301930
},
1931-
"init_block": {"workchain":-1,"shard":-9223372036854775808,"seqno":2908451,"root_hash":"5+7X1QHVUBFLFMwa/yd/2fGzt2KeQtwr+o6UUFOQ7Qc=","file_hash":"gmiUgrtAbvEJZYDEkcbeNOhGPS3g+qCepSOEBFLZFzk="}
1931+
"init_block" : {
1932+
"file_hash": "t/9VBPODF7Zdh4nsnA49dprO69nQNMqYL+zk5bCjV/8=",
1933+
"seqno": 8536841,
1934+
"root_hash": "08Kpc9XxrMKC6BF/FeNHPS3MEL1/Vi/fQU/C9ELUrkc=",
1935+
"workchain": -1,
1936+
"shard": -9223372036854775808
1937+
},
1938+
"hardforks": [
1939+
{
1940+
"file_hash": "t/9VBPODF7Zdh4nsnA49dprO69nQNMqYL+zk5bCjV/8=",
1941+
"seqno": 8536841,
1942+
"root_hash": "08Kpc9XxrMKC6BF/FeNHPS3MEL1/Vi/fQU/C9ELUrkc=",
1943+
"workchain": -1,
1944+
"shard": -9223372036854775808
1945+
}
1946+
]
19321947
}
19331948
})abc");
19341949
return res;

0 commit comments

Comments
 (0)