mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Merge branch 'testnet' into accelerator
This commit is contained in:
commit
e6aac0b143
30 changed files with 426 additions and 11 deletions
|
@ -2138,6 +2138,10 @@ void ValidatorEngine::start_full_node() {
|
|||
td::actor::send_closure(full_node_, &ton::validator::fullnode::FullNode::import_fast_sync_member_certificate,
|
||||
x.first, x.second);
|
||||
}
|
||||
if (!validator_telemetry_filename_.empty()) {
|
||||
td::actor::send_closure(full_node_, &ton::validator::fullnode::FullNode::set_validator_telemetry_filename,
|
||||
validator_telemetry_filename_);
|
||||
}
|
||||
load_custom_overlays_config();
|
||||
} else {
|
||||
started_full_node();
|
||||
|
@ -4979,6 +4983,15 @@ int main(int argc, char *argv[]) {
|
|||
acts.push_back(
|
||||
[&x]() { td::actor::send_closure(x, &ValidatorEngine::set_fast_state_serializer_enabled, true); });
|
||||
});
|
||||
p.add_option(
|
||||
'\0', "collect-validator-telemetry",
|
||||
"store validator telemetry from private block overlay to a given file (json format)",
|
||||
[&](td::Slice s) {
|
||||
acts.push_back(
|
||||
[&x, s = s.str()]() {
|
||||
td::actor::send_closure(x, &ValidatorEngine::set_validator_telemetry_filename, s);
|
||||
});
|
||||
});
|
||||
auto S = p.run(argc, argv);
|
||||
if (S.is_error()) {
|
||||
LOG(ERROR) << "failed to parse options: " << S.move_as_error();
|
||||
|
|
|
@ -233,6 +233,7 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
ton::BlockSeqno truncate_seqno_{0};
|
||||
std::string session_logs_file_;
|
||||
bool fast_state_serializer_enabled_ = false;
|
||||
std::string validator_telemetry_filename_;
|
||||
bool not_all_shards_ = false;
|
||||
std::vector<ton::ShardIdFull> add_shard_cmds_;
|
||||
|
||||
|
@ -323,6 +324,9 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
void set_fast_state_serializer_enabled(bool value) {
|
||||
fast_state_serializer_enabled_ = value;
|
||||
}
|
||||
void set_validator_telemetry_filename(std::string value) {
|
||||
validator_telemetry_filename_ = std::move(value);
|
||||
}
|
||||
void set_not_all_shards() {
|
||||
not_all_shards_ = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue