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
9d927e8cfb
42 changed files with 1067 additions and 208 deletions
|
|
@ -1293,6 +1293,50 @@ class GetCollatorOptionsJsonQuery : public Query {
|
|||
std::string file_name_;
|
||||
};
|
||||
|
||||
class GetAdnlStatsJsonQuery : public Query {
|
||||
public:
|
||||
GetAdnlStatsJsonQuery(td::actor::ActorId<ValidatorEngineConsole> console, Tokenizer tokenizer)
|
||||
: Query(console, std::move(tokenizer)) {
|
||||
}
|
||||
td::Status run() override;
|
||||
td::Status send() override;
|
||||
td::Status receive(td::BufferSlice data) override;
|
||||
static std::string get_name() {
|
||||
return "getadnlstatsjson";
|
||||
}
|
||||
static std::string get_help() {
|
||||
return "getadnlstatsjson <filename>\tsave adnl stats to <filename>";
|
||||
}
|
||||
std::string name() const override {
|
||||
return get_name();
|
||||
}
|
||||
|
||||
private:
|
||||
std::string file_name_;
|
||||
};
|
||||
|
||||
class GetAdnlStatsQuery : public Query {
|
||||
public:
|
||||
GetAdnlStatsQuery(td::actor::ActorId<ValidatorEngineConsole> console, Tokenizer tokenizer)
|
||||
: Query(console, std::move(tokenizer)) {
|
||||
}
|
||||
td::Status run() override;
|
||||
td::Status send() override;
|
||||
td::Status receive(td::BufferSlice data) override;
|
||||
static std::string get_name() {
|
||||
return "getadnlstats";
|
||||
}
|
||||
static std::string get_help() {
|
||||
return "getadnlstats\tdisplay adnl stats";
|
||||
}
|
||||
std::string name() const override {
|
||||
return get_name();
|
||||
}
|
||||
|
||||
private:
|
||||
std::string file_name_;
|
||||
};
|
||||
|
||||
class AddCollatorQuery : public Query {
|
||||
public:
|
||||
AddCollatorQuery(td::actor::ActorId<ValidatorEngineConsole> console, Tokenizer tokenizer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue