MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / initialize_tonlib

Method initialize_tonlib

runners/BaseRunner.cpp:416–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 co_return td::Unit{};
415}
416td::actor::Task<td::Unit> BaseRunner::initialize_tonlib() {
417 if (ton_disabled()) {
418 co_return td::Unit();
419 }
420 co_await tonlib_wrapper_.initialize(ton_config_filename_, is_testnet());
421 co_await tonlib_wrapper_.sync();
422 set_tonlib_synced();
423 co_return td::Unit();
424}
425td::actor::Task<td::Unit> BaseRunner::get_root_contract_initial_state() {
426 if (ton_disabled()) {
427 auto config = co_await RootContractConfig::load_from_json(ton_pseudo_config_, is_testnet());

Callers

nothing calls this directly

Calls 2

syncMethod · 0.80
initializeMethod · 0.45

Tested by

no test coverage detected