mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
liteclient signature check support
1. update liteclient/liteserver. Now liteserver sends signatures of blocks and liteclient checks them. I.e. liteclient completely checks received data. 2. validator-engine: more GC options 3. blockchain-explorer: show all block transactions (instead of 256) 4. some bugfixes
This commit is contained in:
parent
d8244eff53
commit
9d6853ef24
58 changed files with 1480 additions and 325 deletions
|
@ -671,7 +671,8 @@ void AcceptBlockQuery::got_proof_link(BlockIdExt id, Ref<ProofLink> proof) {
|
|||
// first link in chain
|
||||
if (ancestors_.size() != link_prev_.size() || ancestors_[0]->blk_ != link_prev_[0] ||
|
||||
(ancestors_.size() == 2 && ancestors_[1]->blk_ != link_prev_[1])) {
|
||||
fatal_error("invalid first link at block "s + id.to_str() + " for shardchain block " + id_.to_str());
|
||||
fatal_error("invalid first link at block "s + id.to_str() + " for shardchain block " + id_.to_str(),
|
||||
ErrorCode::cancelled);
|
||||
return;
|
||||
}
|
||||
create_topshard_blk_descr();
|
||||
|
@ -680,7 +681,8 @@ void AcceptBlockQuery::got_proof_link(BlockIdExt id, Ref<ProofLink> proof) {
|
|||
// intermediate link
|
||||
if (link_prev_.size() != 1 || ton::ShardIdFull(link_prev_[0].id) != ton::ShardIdFull(id_) ||
|
||||
link_prev_[0].id.seqno + 1 != id.id.seqno) {
|
||||
fatal_error("invalid intermediate link at block "s + id.to_str() + " for shardchain block " + id_.to_str());
|
||||
fatal_error("invalid intermediate link at block "s + id.to_str() + " for shardchain block " + id_.to_str(),
|
||||
ErrorCode::cancelled);
|
||||
return;
|
||||
}
|
||||
require_proof_link(link_prev_[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue