Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.18 KB

readme.md

File metadata and controls

25 lines (18 loc) · 1.18 KB

Connector to the Stellar Node in Rust

Stellar blockchain node source code

The app is minimalistic. By default, it connects to a hardcoded MAINNET stellar node, executes handshake, prints the result and ends.

To run this app:

  1. rust nightly >= 1.71
  2. cargo run

To understand the handshake process, refer to handshake in the root of the project.

What's not included:

  1. Unit tests. The code is written to be easily unit-tested because it eliminates all random dependencies.
  2. When the Stellar Node, not the app is the one who initializes a connection.
  3. Handling Error as well as any other messages from node.
  4. Reading the configuration from file. The configuration constants are hardcoded as mainnet and local, but it's easy to add your own config.
  5. Logging.
  6. Timeout for waiting for messages from TCP.
  7. Running a tcp connection in a separate task.
  8. Code comments.

Upon request, it's possible to provide the details on how to run a local stellar node to actually read the logs from it or implement all the above features.