Skip to content

Conversation

@DanShaders
Copy link
Collaborator

@DanShaders DanShaders commented Nov 24, 2025

The only implemented control query is engine.validator.getActorTextStats. One can run it from inside a script via

actor_stats = await full_node.engine_console.get_actor_stats()

Adding support for more queries is as easy as adding them to a switch in is_engine_console_query in tonlib/tonlib/EngineConsoleClient.cpp and writing a wrapper in test/tontester/src/tonlib/engine_console.py.

@github-actions
Copy link

@codex review

@chatgpt-codex-connector
Copy link

To use Codex here, create a Codex account and connect to github.

Copy link
Collaborator Author

@DanShaders DanShaders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an ordinary self-review, nothing to see here.


---types---
proxyLiteserver.config port:int id:PublicKey = proxyLiteserver.Config;
engineConsoleClient.config address:string public_key:PublicKey private_key:PrivateKey = engineConsoleClient.Config;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename public_key -> server_public_key; private_key -> client_private_key.


namespace tonlib {

class ActorCounter {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figure out if stopping a scheduler is fine when there are actors that are stopped but possibly not destroyed. If this is indeed fine, remove ActorCounter and just use std::atomic.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test?

return self._client

@property
def engine_console(self) -> EngineConsoleClient:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add usage to test_basic.py

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swap this and previous commits.

@DanShaders
Copy link
Collaborator Author

  • Extra ninja -C build install recompiles files because of git watcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant