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:
parent
38c3e39066
commit
b978e27b2f
63 changed files with 3185 additions and 81 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue