diff --git a/adnl/adnl-received-mask.h b/adnl/adnl-received-mask.h
index 74b6238e5..0822ae3ef 100644
--- a/adnl/adnl-received-mask.h
+++ b/adnl/adnl-received-mask.h
@@ -1,3 +1,21 @@
+/*
+ This file is part of TON Blockchain Library.
+
+ TON Blockchain Library is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ TON Blockchain Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with TON Blockchain Library. If not, see .
+
+ Copyright 2017-2020 Telegram Systems LLP
+*/
#pragma once
#include "td/utils/int_types.h"
diff --git a/adnl/adnl-tunnel.cpp b/adnl/adnl-tunnel.cpp
index 94796bbde..360196f4e 100644
--- a/adnl/adnl-tunnel.cpp
+++ b/adnl/adnl-tunnel.cpp
@@ -1,3 +1,21 @@
+/*
+ This file is part of TON Blockchain Library.
+
+ TON Blockchain Library is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ TON Blockchain Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with TON Blockchain Library. If not, see .
+
+ Copyright 2017-2020 Telegram Systems LLP
+*/
#include "adnl-tunnel.h"
#include "adnl-peer-table.h"
diff --git a/adnl/adnl-tunnel.h b/adnl/adnl-tunnel.h
index 9d54dcc9e..d7f6a66fa 100644
--- a/adnl/adnl-tunnel.h
+++ b/adnl/adnl-tunnel.h
@@ -1,27 +1,18 @@
/*
- This file is part of TON Blockchain source code.
+ This file is part of TON Blockchain Library.
- TON Blockchain is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
+ TON Blockchain Library is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
- TON Blockchain is distributed in the hope that it will be useful,
+ TON Blockchain Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with TON Blockchain. If not, see .
-
- In addition, as a special exception, the copyright holders give permission
- to link the code of portions of this program with the OpenSSL library.
- You must obey the GNU General Public License in all respects for all
- of the code used other than OpenSSL. If you modify file(s) with this
- exception, you may extend this exception to your version of the file(s),
- but you are not obligated to do so. If you do not wish to do so, delete this
- exception statement from your version. If you delete this exception statement
- from all source files in the program, then also delete it here.
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with TON Blockchain Library. If not, see .
Copyright 2017-2020 Telegram Systems LLP
*/
diff --git a/crypto/test/wycheproof.h b/crypto/test/wycheproof.h
index 124108d78..86a18501f 100644
--- a/crypto/test/wycheproof.h
+++ b/crypto/test/wycheproof.h
@@ -1,3 +1,21 @@
+/*
+ This file is part of TON Blockchain Library.
+
+ TON Blockchain Library is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ TON Blockchain Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with TON Blockchain Library. If not, see .
+
+ Copyright 2017-2020 Telegram Systems LLP
+*/
#pragma once
#include
diff --git a/crypto/vm/boc.cpp b/crypto/vm/boc.cpp
index 058f1e997..c53595ffc 100644
--- a/crypto/vm/boc.cpp
+++ b/crypto/vm/boc.cpp
@@ -375,7 +375,7 @@ td::uint64 BagOfCells::compute_sizes(int mode, int& r_size, int& o_size) {
r_size = o_size = 0;
return 0;
}
- while (cell_count >= (1 << (rs << 3))) {
+ while (cell_count >= (1LL << (rs << 3))) {
rs++;
}
td::uint64 hashes =
diff --git a/tddb/test/binlog.cpp b/tddb/test/binlog.cpp
index d3cc6c9b0..8a665439f 100644
--- a/tddb/test/binlog.cpp
+++ b/tddb/test/binlog.cpp
@@ -270,7 +270,7 @@ struct LogEventString {
return -static_cast(need_size);
}
dest.truncate(need_size);
- td::as(dest.data()) = tag;
+ td::as(dest.data()) = unsigned(tag);
td::as(dest.data() + 4) = td::narrow_cast(data.size());
dest.substr(8).copy_from(data);
return dest.size();
diff --git a/tdutils/td/utils/as.h b/tdutils/td/utils/as.h
index 9b93b675d..c60c74e25 100644
--- a/tdutils/td/utils/as.h
+++ b/tdutils/td/utils/as.h
@@ -40,7 +40,7 @@ class As {
}
~As() = default;
- As &operator=(T new_value) && {
+ As &operator=(const T &new_value) && {
std::memcpy(ptr_, &new_value, sizeof(T));
return *this;
}
diff --git a/tdutils/td/utils/port/uname.cpp b/tdutils/td/utils/port/uname.cpp
index 55775d9e4..1f94de881 100644
--- a/tdutils/td/utils/port/uname.cpp
+++ b/tdutils/td/utils/port/uname.cpp
@@ -1,3 +1,21 @@
+/*
+ This file is part of TON Blockchain Library.
+
+ TON Blockchain Library is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ TON Blockchain Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with TON Blockchain Library. If not, see .
+
+ Copyright 2017-2020 Telegram Systems LLP
+*/
#include "td/utils/port/uname.h"
#include "td/utils/port/config.h"
diff --git a/tdutils/td/utils/port/uname.h b/tdutils/td/utils/port/uname.h
index aba0b09b0..26d5e15e1 100644
--- a/tdutils/td/utils/port/uname.h
+++ b/tdutils/td/utils/port/uname.h
@@ -1,3 +1,21 @@
+/*
+ This file is part of TON Blockchain Library.
+
+ TON Blockchain Library is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ TON Blockchain Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with TON Blockchain Library. If not, see .
+
+ Copyright 2017-2020 Telegram Systems LLP
+*/
#pragma once
#include "td/utils/Slice.h"
diff --git a/tonlib/tonlib/TonlibClient.cpp b/tonlib/tonlib/TonlibClient.cpp
index 74ed3561a..e21568339 100644
--- a/tonlib/tonlib/TonlibClient.cpp
+++ b/tonlib/tonlib/TonlibClient.cpp
@@ -1928,7 +1928,22 @@ const MasterConfig& get_default_master_config() {
"root_hash": "F6OpKZKqvqeFp6CQmFomXNMfMj2EnaUSOXN+Mh+wVWk=",
"file_hash": "XplPz01CXAps5qeSWUtxcyBfdAo5zVb1N979KLSKD24="
},
- "init_block": {"workchain":-1,"shard":-9223372036854775808,"seqno":2908451,"root_hash":"5+7X1QHVUBFLFMwa/yd/2fGzt2KeQtwr+o6UUFOQ7Qc=","file_hash":"gmiUgrtAbvEJZYDEkcbeNOhGPS3g+qCepSOEBFLZFzk="}
+ "init_block" : {
+ "file_hash": "t/9VBPODF7Zdh4nsnA49dprO69nQNMqYL+zk5bCjV/8=",
+ "seqno": 8536841,
+ "root_hash": "08Kpc9XxrMKC6BF/FeNHPS3MEL1/Vi/fQU/C9ELUrkc=",
+ "workchain": -1,
+ "shard": -9223372036854775808
+ },
+ "hardforks": [
+ {
+ "file_hash": "t/9VBPODF7Zdh4nsnA49dprO69nQNMqYL+zk5bCjV/8=",
+ "seqno": 8536841,
+ "root_hash": "08Kpc9XxrMKC6BF/FeNHPS3MEL1/Vi/fQU/C9ELUrkc=",
+ "workchain": -1,
+ "shard": -9223372036854775808
+ }
+ ]
}
})abc");
return res;