mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Accelerator: partial fullnodes (#1393)
* Accelerator: partial fullnodes 1) Node can monitor a subset of shards 2) New archive slice format (sharded) 3) Validators are still required to have all shards 4) Support partial liteservers in lite-client, blockchain explorer, tonlib 5) Proxy liteserver * Fix compilation error
This commit is contained in:
parent
62444100f5
commit
954a96a077
83 changed files with 3213 additions and 1113 deletions
|
|
@ -20,15 +20,12 @@
|
|||
#include "ExtClientOutbound.h"
|
||||
#include "TonlibError.h"
|
||||
#include <map>
|
||||
|
||||
namespace tonlib {
|
||||
|
||||
class ExtClientOutboundImp : public ExtClientOutbound {
|
||||
class ExtClientOutboundImpl : public ExtClientOutbound {
|
||||
public:
|
||||
ExtClientOutboundImp(td::unique_ptr<ExtClientOutbound::Callback> callback) : callback_(std::move(callback)) {
|
||||
}
|
||||
|
||||
void check_ready(td::Promise<td::Unit> promise) override {
|
||||
promise.set_error(td::Status::Error("Not supported"));
|
||||
ExtClientOutboundImpl(td::unique_ptr<ExtClientOutbound::Callback> callback) : callback_(std::move(callback)) {
|
||||
}
|
||||
|
||||
void send_query(std::string name, td::BufferSlice data, td::Timestamp timeout,
|
||||
|
|
@ -38,9 +35,6 @@ class ExtClientOutboundImp : public ExtClientOutbound {
|
|||
callback_->request(query_id, data.as_slice().str());
|
||||
}
|
||||
|
||||
void force_change_liteserver() override {
|
||||
}
|
||||
|
||||
void on_query_result(td::int64 id, td::Result<td::BufferSlice> r_data, td::Promise<td::Unit> promise) override {
|
||||
auto it = queries_.find(id);
|
||||
if (it == queries_.end()) {
|
||||
|
|
@ -66,6 +60,6 @@ class ExtClientOutboundImp : public ExtClientOutbound {
|
|||
};
|
||||
|
||||
td::actor::ActorOwn<ExtClientOutbound> ExtClientOutbound::create(td::unique_ptr<Callback> callback) {
|
||||
return td::actor::create_actor<ExtClientOutboundImp>("ExtClientOutbound", std::move(callback));
|
||||
return td::actor::create_actor<ExtClientOutboundImpl>("ExtClientOutbound", std::move(callback));
|
||||
}
|
||||
} // namespace tonlib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue