mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
added support for config change proposals
- added some fift scripts for the config change proposal voting - added validator-engine-console support for the config change proposal voting - additional sanity checks in catchain - unsafe slow catchain resync method
This commit is contained in:
parent
a31f8d4424
commit
4dd5eea11f
35 changed files with 753 additions and 144 deletions
|
@ -78,6 +78,19 @@ class CatChainReceiverSourceImpl : public CatChainReceiverSource {
|
|||
CatChainBlockHeight received_height() const override {
|
||||
return received_height_;
|
||||
}
|
||||
bool has_unreceived() const override {
|
||||
if (blamed()) {
|
||||
return true;
|
||||
}
|
||||
if (!blocks_.size()) {
|
||||
return false;
|
||||
}
|
||||
CHECK(blocks_.rbegin()->second->get_height() >= received_height_);
|
||||
return blocks_.rbegin()->second->get_height() > received_height_;
|
||||
}
|
||||
bool has_undelivered() const override {
|
||||
return delivered_height_ < received_height_;
|
||||
}
|
||||
CatChainReceivedBlock *get_block(CatChainBlockHeight height) const override;
|
||||
|
||||
td::Status validate_dep_sync(tl_object_ptr<ton_api::catchain_block_dep> &dep) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue