Skip to content

Latest commit

 

History

History

sample_runtime

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Exonum: Sample runtime

Build status Gitter

Minimal Exonum blockchain example implementing a simple runtime.

Description

This example demonstrates the simplified version of Rust runtime, able to deploy and run services in the Exonum blockchain.

The heart of this example is the SampleRuntime structure, which implements exonum::Runtime trait.

main function contains the bootstrapping of the full Exonum node, which has two runtimes:

  • Rust runtime, full-fledged runtime for Rust services.
  • Sample runtime, introduced by this example.

Later, a service is deployed and started for this Sample runtime, and several transactions are executed in this service to demonstrate the interaction process.

Running

Enter the example folder in terminal and then run the following:

cargo run

License

Sample runtime is licensed under the Apache License (Version 2.0). See LICENSE for details.