1
0
Fork 0
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:
ton 2019-09-14 18:14:55 +04:00
parent d8244eff53
commit 9d6853ef24
58 changed files with 1480 additions and 325 deletions

View file

@ -181,6 +181,9 @@ class ValidatorEngine : public td::actor::Actor {
td::Clocks::Duration state_ttl_ = 0;
td::Clocks::Duration block_ttl_ = 0;
td::Clocks::Duration sync_ttl_ = 0;
td::Clocks::Duration archive_ttl_ = 0;
td::Clocks::Duration key_proof_ttl_ = 0;
td::uint32 db_depth_ = 33;
bool read_config_ = false;
bool started_keyring_ = false;
bool started_ = false;
@ -196,6 +199,9 @@ class ValidatorEngine : public td::actor::Actor {
fift_dir_ = str;
}
void set_db_root(std::string db_root);
void set_db_depth(td::uint32 value) {
db_depth_ = value;
}
void set_state_ttl(td::Clocks::Duration t) {
state_ttl_ = t;
}
@ -205,6 +211,12 @@ class ValidatorEngine : public td::actor::Actor {
void set_sync_ttl(td::Clocks::Duration t) {
sync_ttl_ = t;
}
void set_archive_ttl(td::Clocks::Duration t) {
archive_ttl_ = t;
}
void set_key_proof_ttl(td::Clocks::Duration t) {
key_proof_ttl_ = t;
}
void add_ip(td::IPAddress addr) {
addrs_.push_back(addr);
}