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

updated smartcontract code

- updated smartcontract code
- fixed bug in liteserver listening socket
- updated documentation
This commit is contained in:
ton 2019-10-14 11:13:23 +04:00
parent 38c3e39066
commit b978e27b2f
63 changed files with 3185 additions and 81 deletions

View file

@ -424,7 +424,7 @@ td::Status BlockProofLink::validate(td::uint32* save_utime) const {
}
}
td::Status BlockProofChain::validate() {
td::Status BlockProofChain::validate(td::CancellationToken cancellation_token) {
valid = false;
has_key_block = false;
has_utime = false;
@ -450,6 +450,9 @@ td::Status BlockProofChain::validate() {
<< link.from.to_str() << " but the previous link ends at different block "
<< cur.to_str());
}
if (cancellation_token) {
return td::Status::Error("Cancelled");
}
auto err = link.validate(&last_utime);
if (err.is_error()) {
return td::Status::Error(PSTRING() << "link #" << i << " in BlockProofChain is invalid: " << err.to_string());